Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor 8 WebApp - Client Project Fails when adding Project Reference to Class Library

$
0
0

I am using the new Blazor 8 (.net 8.0) WebApp template with Identity Authentication and Server & WebAssembly interactive render modes.

I created an external class library for my Services that house both the Server and Client Services. Client calls into an internal api and the Server calls into my Repositories.

However, when I add the Services project to the Client via a Project reference, my Client project fails to build with the following error

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RunTimeIdentifier 'browser-wasm' in file Microsoft.NET.Sdk.FrameworkReferenceResolution.targets line 491

Anyone know why this is failing?

I have the following nuGet packages installed in the Services project:

Microsoft.AspNetCore.Components.WebAssemblyMicrosoft.AspNetCore.Components.WebAssembly.AuthenticationNewtonsoft.Json

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>