Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I get Microsoft.AspNetCore.Authentication.OAuth 9.0 as a standalone assembly? #63638

Answered by martincostello
epsitec asked this question in Q&A
Discussion options

I am using the OAuthTokenResponse class from Authentication.OAuth.

When referencing the AspNetCore framework through a <FrameworkReference> in my project, this works fine:

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

However, the class library cannot be used from a Blazor WASM project.

Now, if I try to reference Microsoft.AspNetCore.Authentication.OAuth directly:

 <ItemGroup>
 <PackageReference Include="Microsoft.AspNetCore.Authentication.OAuth" />
 </ItemGroup>

then the most recent version I find on NuGet is 2.3.0, which is still using Newtonsoft, and is not compatible with my own code, which is using System.Text.Json.

How (or where) can I get the 9.0.0 version of the assembly? Or is this by design?

You must be logged in to vote

You can't - the NuGet package is not shipped separately, which is why you can't find any versions newer than 2.x in NuGet.org.

Replies: 1 comment

Comment options

You can't - the NuGet package is not shipped separately, which is why you can't find any versions newer than 2.x in NuGet.org.

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

AltStyle によって変換されたページ (->オリジナル) /