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.

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.

See original GitHub issue

Hello,

When I migrated my Asp.net Core 3.1 Hosted Blazor Webassembly Project to .Net 5 (Client, Server, Shared) I started to get at Server project below error message:

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier ‘browser-wasm’. and directs me there: `

ResolveRuntimePackAssets

Resolve assets from runtime packs.

–> <ResolveRuntimePackAssets FrameworkReferences="@(FrameworkReference)" ResolvedRuntimePacks="@(ResolvedRuntimePack)" UnavailableRuntimePacks="@(UnavailableRuntimePack)" SatelliteResourceLanguages="$(SatelliteResourceLanguages)" DesignTimeBuild="$(DesignTimeBuild)"> <Output TaskParameter="RuntimePackAssets" ItemName="RuntimePackAsset" /> </ResolveRuntimePackAssets>

<ItemGroup> <ReferenceCopyLocalPaths Include="@(RuntimePackAsset)" Condition="'$(CopyLocalLockFileAssemblies)' == 'true' and ('$(SelfContained)' == 'true' or '%(RuntimePackAsset.RuntimePackAlwaysCopyLocal)' == 'true')" /> </ItemGroup> `

When I bring back Project Sdk=“Microsoft.NET.Sdk.BlazorWebAssembly” to Project Sdk=“Microsoft.NET.Sdk.Web” in Server project file it seems to compile successfully but the client does not render properly.

Why this is happening?

Same issue was addressed in StockExchange: https://stackoverflow.com/questions/63993294/there-was-no-runtime-pack-for-microsoft-aspnetcore-app-available-for-the-specifi

but I don’t see them having a fitting solution for me.

Thanks,

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Exceptions (if any)

Further technical details

  • ASP.NET Core version .Net 5.0
  • Include the output of dotnet --info dotnet info.txt
  • The IDE (VS / VS Code/ VS4Mac) you’re running on, and it’s version Visual Studio 2019 16.8

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
pranavkmcommented, Nov 11, 2020

@ozanyasindogan could you verify this is what your projects’ SDKs look like:

  • Client - Microsoft.NET.Sdk.BlazorWebAssembly
  • Server - Microsoft.NET.Sdk.Web
  • Shared - Microsoft.NET.Sdk

@guardrex looking at the SO responses, there might be some confusion about what projects need the SDK to be updated. Do we need to tweak our migration guides to make this clearer: https://docs.microsoft.com/en-us/aspnet/core/migration/31-to-50?view=aspnetcore-3.1&tabs=visual-studio#update-blazor-webassembly-projects?

0reactions
pranavkmcommented, Nov 16, 2020

Hi, it’s not helpful to comment on a closed issue as it is very easy for us to miss these notifications. If you’re having issues migrating what would help is to file a new issue, include the contents of your app’s project files, and any errors you see during the build when you update the app. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

There was no runtime pack for Microsoft.AspNetCore.App ...
There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm' ... Trying to migrate from ASP ...
Read more >
There is no runtime pack availabel for ...
AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'. 1>Done building project "Books.Client.csproj" -- FAILED. = ...
Read more >
There was no runtime pack for Microsoft.AspNetCore.App ...
There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'. #45078.
Read more >
How to fix "There was no runtime pack for Microsoft ...
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.
Read more >
There was no runtime pack for Microsoft.AspNetCore.App ...
There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.
Read more >

github_iconTop Related Medium Post

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