IdentityModel / IdentityModel.AspNetCore

ASP.NET Core helper library for claims-based identity, OAuth 2.0 and OpenID Connect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blazor WASM Project Referencing Error (BLAZORSDK1001)

infofromca opened this issue · comments

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?

commented

this is the issue:
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="5.0.0" />

This package is not supposed to be added to the WASM project - it's for the server.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.