You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blazor 0.8.0 standalone project that was generated by dotnet new blazor command could not launch.
To Reproduce
Steps to reproduce the behavior:
Install .NET Core SDK ver.3.0.0-preview-19075-0444 from here.
Install Visual Studio 2019 Preview 2.
Install Blazor 0.8.0 template by dotnet new -i Microsoft.AspNetCore.Blazor.Templates::0.8.0-preview-19104-04
Create Blazor 0.8.0 standalone project by dotnet new blazor.
Restore and build it by dotnet build. (this will be success.)
Run it by dotnet run
The error message (see bellow) is shown, and it could not launch.
The specified framework 'Microsoft.AspNetCore.App', version '3.0.0-preview-19104-06' was not found.
Expected behavior
dotnet run launch blazor server successfully.
Screenshots
Additional context
The hosted version of Blazor 0.8.0 that was generated by dotnet new blazorhosted CLI works fine.
I could not find the version 3.0.0-preview-19104-06 of .NET Core SDK or Runtime in my internet searching.
My workaround
I rewrited "%HOME%.nuget\packages\microsoft.aspnetcore.blazor.cli\0.8.0-preview-19104-06\lib\netcoreapp3.0\dotnet-blazor.runtimeconfig.json" to use v.19075-0444 instead of v.19104-06.
After that, "dotnet run" works fine.
The text was updated successfully, but these errors were encountered:
Eilon
added
the
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
label
Feb 6, 2019
The Blazor standalone project that was generated by Visual Studio 2019 Preview 2.x worked fine.
The difference of theses projects was bellow:
<!-- from "dotnet new blazor"-->
<DotNetCliToolReferenceInclude="Microsoft.AspNetCore.Blazor.Cli"Version="0.8.0-preview-19104-06" />
<!-- from VS2019-->
<DotNetCliToolReferenceInclude="Microsoft.AspNetCore.Blazor.Cli"Version="0.8.0-preview-19104-04" />
I tried uninstall the project template with dotnet new -u Microsoft.AspNetCore.Blazor.Templates -Version command, and reinstall it with dotnet new -i Microsoft.AspNetCore.Blazor.Templates::0.8.0-preview-19104-04 command.
After that, dotnet new blazor generate the csproj as bellow:
<!-- from "dotnet new blazor" after reinstall project template -->
<DotNetCliToolReferenceInclude="Microsoft.AspNetCore.Blazor.Cli"Version="0.8.0-preview-19104-04" />
Of course, Version 0.8.0-preview-19104-04 CLI works fine.
I'm not sure about why my first installation of Blazor project template for dotnet CLI was configured for using invalid version"19104-06".
@jsakamoto I suspect when you installed the Blazor templates initially you somehow picked up a version of the templates package from one of our MyGet feeds with dev builds.
Since you've resolved your own issue I'm going to go ahead and close this.
Describe the bug
Blazor 0.8.0 standalone project that was generated by
dotnet new blazor
command could not launch.To Reproduce
Steps to reproduce the behavior:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::0.8.0-preview-19104-04
dotnet new blazor
.dotnet build
. (this will be success.)dotnet run
Expected behavior
dotnet run
launch blazor server successfully.Screenshots
Additional context
The hosted version of Blazor 0.8.0 that was generated by
dotnet new blazorhosted
CLI works fine.I could not find the version 3.0.0-preview-19104-06 of .NET Core SDK or Runtime in my internet searching.
My workaround
I rewrited "%HOME%.nuget\packages\microsoft.aspnetcore.blazor.cli\0.8.0-preview-19104-06\lib\netcoreapp3.0\dotnet-blazor.runtimeconfig.json" to use v.19075-0444 instead of v.19104-06.
After that, "dotnet run" works fine.
The text was updated successfully, but these errors were encountered: