Blazor WASM Project Referencing Error (BLAZORSDK1001)
infofromca opened this issue · comments
andy commented
i have a Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly" , when I refer IdentityModel/IdentityModel.AspNetCore to it.
got
<Target Name="_FailIfReferencingAspNetCoreApp" BeforeTargets="ResolveRuntimePackAssets">
<Error
Code="BLAZORSDK1001"
Text="The project references the ASP.NET Core shared framework, which is not supported by Blazor WebAssembly apps. Remove the framework reference if directly referenced, or the package reference that adds the framework reference."
Condition="'@(FrameworkReference->WithMetadataValue('Identity', 'Microsoft.AspNetCore.App')->Count())' != '0'" />
</Target>
why?
andy commented
this is the issue:
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="5.0.0" />
Dominick Baier commented
This package is not supposed to be added to the WASM project - it's for the server.
github-actions commented
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.