Skip to content

Does "Microsoft.AspNetCore.Identity" library support for .Net 5.0 ? #27908

Answered by blowdart
slnkykrn asked this question in Q&A
Discussion options

You must be logged in to vote

You shouldn't have been using the 2.2.0 package in 3.1. Identity (and a lot of other stuff) became part of the reference assembly, and no more external packages where needed.

For a basic 3.1 app, with identity and a UI you would have a project that looks like this:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <CopyRefAssembliesToPublishDirectory>false</CopyRefAssembliesToPublishDirectory>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.1.8" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.1.8"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by slnkykrn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants