question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

REPRO 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

  1. Install .NET 7.0(latest-release-build)/.NET 6.0(latest-release-build)
  2. 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

  1. Open a normal Terminal Emulator
  2. 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: image

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:closed
  • Created 7 months ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sbomercommented, Mar 3, 2023

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!

1reaction
v-elenafengcommented, Mar 3, 2023

@sbomer, Yes, very helpful, thanks for the explanation, we can close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting 'Unable to find package Microsoft. ...
I am running Visual Studio 2019 and trying to develop a .NET Core 3,1 ASP MVC application. I was working just fine yesterday...
Read more >
unable to find package Microsoft.NETCore.App.Runtime. ...
I am getting an "unable to find package Microsoft.NETCore.App.Runtime.browser-wasm" error when trying to Build an AspNetCore 5.0.0 Blazor ...
Read more >
Microsoft.AspNetCore.Components.WebAssembly 7.0.10
Version Downloads Last updated 8.0.0‑preview.7.23375.9 2,702 13 days ago 8.0.0‑preview.6.23329.11 10,187 a month ago 8.0.0‑preview.5.23302.2 5,574 2 months ago
Read more >
Blazor WebAssembly & Web API on .NET 6 – Full Course (C#)
Learn Blazor WebAssembly and Web API on . NET 6 by building a shopping cart application using C#. This course also provides a...
Read more >
Can't get webassembly project to build : r/Blazor
Client.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.browser- wasm. No packages exist with this id in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found