Getting started with Blazor

Blazor – Microsoft’s new web technology. I read a lot about the new possibilities and decided to get started with Blazor. My first step was visiting https://docs.microsoft.com/de-de/aspnet/core/blazor/get-started?view=aspnetcore-3.0&tabs=visual-studio to get all information about how to install Blazor and how to programm my first code example. I downloaded the latest version of the .net Core SDK v3.0.0-preview9 from https://dotnet.microsoft.com/download/dotnet-core/3.0 and installed the Blazor templates by command shell.

dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview9.19424.4

Now I wanted to create a new project and select Blazor as template. But there were no .net core 3 templates in the selection only core 2.1 and 2.2 project templates. Afterwords I tried many things to get it working but nothing helped.

Solution: I should have read the instructions in a better and more sensible way. I missed an important detail: The latest .net Core 3 preview version only works with the latest Visual Studio preview version.

.net Core SDK download page
.net Core SDK download page

My installed version of Visual Studio was Community Edition 16.2.5. No chance to run the latest SDK version. I had to deinstall SDK 3 preview 9 and installed v3.0.0-preview6 because this SDK version supports Visual Studio 2019 v16.2.

Coming back to Visual Studio and creating a new project I could choose from .net Core 3 templates as expected.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert