After installing .NET 8.0 Preview 2, Create a 7.0/6.0 Blazor WebAssembly app with a warning and error: "Unable to find package Microsoft.NETCore.App.Runtime.Mono.browser-wasm with version (= 7.0.4)..."
See original GitHub issueREPRO MACHINE: MacOS Ventura (13.2) REPRO Configuration:
SDK: 8.0.100-preview.2.23151.6 .NET Core SDK: 8.0.100-preview.2.23128.3
.NET Core Runtime: 8.0.0-preview.2.23128.3
INSTALL STEPS
- Install .NET 7.0(latest-release-build)/.NET 6.0(latest-release-build)
- Install .NET 8.0.100-preview.2 from https://aka.ms/dotnet/8.0.1xx-preview2/daily/dotnet-sdk-osx-x64.pkg
Platform
- Windows
- macOS
- Linux
REPRO STEPS
- Open a normal Terminal Emulator
- Create a .NET 7.0/6.0 blazor WebAssembly app project
dotnet new blazorwasm -f net7.0/6.0 -o DebugBlazorApp
Note: .NET 8.0 projects are created without any warnings or errors.
dotnet --info vstester@macos-ventura-13 ~ % dotnet --info .NET SDK: Version: 8.0.100-preview.2.23151.10 Commit: 5ac75f6239
Runtime Environment: OS Name: Mac OS X OS Version: 13.2 OS Platform: Darwin RID: osx.13-x64 Base Path: /usr/local/share/dotnet/sdk/8.0.100-preview.2.23151.10/
Host: Version: 8.0.0-preview.2.23128.3 Architecture: x64 Commit: 30b879924a
.NET SDKs installed: 7.0.201 [/usr/local/share/dotnet/sdk] 8.0.100-preview.2.23151.10 [/usr/local/share/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 7.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-preview.2.23128.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 7.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-preview.2.23128.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found: None
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download vstester@macos-ventura-13 ~ %
ACTUAL
There is a warning when the package is restored
Take 7.0 as an example:
vstester@macos-ventura-13 ~ % dotnet new blazorwasm -f net7.0 -o test1The template “Blazor WebAssembly App” was created successfully.This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/7.0-third-party-notices for details.Processing post-creation actions…Restoring /Users/vstester/test1/test1.csproj: Determining projects to restore…/Users/vstester/test1/test1.csproj : warning NU1603: test1 depends on Microsoft.NET.ILLink.Tasks (>= 7.0.100-1.23062.2) but Microsoft.NET.ILLink.Tasks 7.0.100-1.23062.2 was not found. An approximate best match of Microsoft.NET.ILLink.Tasks 8.0.100-1.23067.1 was resolved./Users/vstester/test1/test1.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.Mono.browser-wasm with version (= 7.0.4)/Users/vstester/test1/test1.csproj : error NU1102: - Found 37 version(s) in nuget.org [ Nearest version: 8.0.0-preview.1.23110.8 ] Failed to restore /Users/vstester/test1/test1.csproj (in 427 ms).Restore failed.Post action failed.Manual instructions: Run ‘dotnet restore’
EXPECTED The project is created without any warnings or errors
Issue Analytics
- State:
- Created 7 months ago
- Comments:10 (7 by maintainers)
The problem was that a package hadn’t been uploaded to nuget.org. The failure mode was visible in preview 1 and preview 2, and while this kind of problem in general can happen in unreleased previews, it shouldn’t have happened in either preview, because both were depending on a package that was supposed to have been released.
The missing package has been uploaded, and the problem should be fixed even for preview 1. Please give it another try and feel free to re-open if you continue to see the issue. Thanks!
@sbomer, Yes, very helpful, thanks for the explanation, we can close this.