79090878

Date: 2024-10-15 16:29:25
Score: 1
Natty:
Report link

The Microsoft.AspNetCore.Authentication package is now included in the Microsoft.AspNetCore.App metapackage.

View of package in Solution Explorer

It is automatically referenced if your project type is Microsoft.NET.Sdk.Web or you add a FrameworkReference. See Use ASP.NET Core APIs in a class library and this question for more details about adding a framework reference.

<ItemGroup>
  <FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

Since you said your project is an ASP.Net WebApi project, I would guess that an explicit FrameworkReference would not be needed. All you may need to do is remove the old package reference.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sandejd1