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.WebAssembly
Microsoft.AspNetCore.Components.WebAssembly.Authentication
Newtonsoft.Json
2