Microsoft.AspNetCore.Blazor.Cli 0.5.1 is not compatible with netcoreapp2.0

asp.net-core blazor visual-studio webassembly

Question

I have visual studio 2017 and .net core 2.1 but still not able to make it run.

While I am creating project I got this error Microsoft.AspNetCore.Blazor.Cli 0.5.1 is not compatible with netcoreapp2.0

enter image description here

Check the below Available .net core SDKs and Runtimes are

enter image description here

1
1
8/30/2018 12:02:56 PM

Popular Answer

As of version 0.5.0 the CLI package targets .NET Core 2.1 rather than .NET Core 2.0. You will have to update the <TargetFramework> element in your csproj file to netcoreapp2.1 if you want to use this pacakge.

I wonder though, why would you take a dependency on this package? It is a global tool. You should probably include packages like Microsoft.AspNetCore.Blazor.Build, Microsoft.AspNetCore.Blazor.Browser, etc.

1
8/30/2018 10:36:22 AM


Related Questions





Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow