Create a Blazor Web App for WebAssembly via Terminal Emulator
dotnet new blazor -int WebAssembly -o Blazortest -f net8.0
Note:
This issue does not repro on Blazor web for server project.
This issue does not repro on 9.0 Blazor web for WebAssembly project.
This issue does not repro without install .NET 9.0 RC2 SDK.
EXPECTED
The project should be created successfully.
ACTUAL
For 6.0
Error Log
Restoring C:\Users\v-mminon\Blazortest\Blazortest.sln:
C:\Users\v-mminon\Blazortest\Blazortest\Blazortest.csproj : warning NU1903: Package 'System.Text.Json' 8.0.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-hh2w-p6rv-4g7w
C:\Users\v-mminon\Blazortest\Blazortest.Client\Blazortest.Client.csproj : error NU1102:
Unable to find package Microsoft.NETCore.App.Runtime.Mono.browser-wasm with version (= 8.0.10)
- Found 96 version(s) in nuget.org [ Nearest version: 9.0.0-preview.1.24080.9 ]
- Found 0 version(s) in Microsoft Visual Studio Offline Packages
- Found 0 version(s) in C:\Program Files\dotnet\library-packs
C:\Users\v-mminon\Blazortest\Blazortest.Client\Blazortest.Client.csproj : warning NU1903: Package 'System.Text.Json' 8.0.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-hh2w-p6rv-4g7w
Restore failed.
Post action failed.
Manual instructions: Run 'dotnet restore'
Testcases Affected [8.0]IdentityWithBlazorWASMIndAuth [6.0]IdentityWithBlazorWASMIndAuth
Affected 8.0 Blazor Web App for WebAssembly app and 6.0 Blazor WebAssembly app
Install Steps
Clean machine: Win 11 x64 22h2 ENU
Install Dev17.12 Preview 3 [main-35315.05], Preview channel
Install .NET 9.0 RC2: https://aka.ms/dotnet/9.0.1xx/daily/dotnet-sdk-win-x64.exe
Apply feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json
Repro Steps
dotnet new blazor -int WebAssembly -o Blazortest -f net8.0
Note:
EXPECTED The project should be created successfully.
ACTUAL
For 6.0
Error Log
Dotnet info