Failed to install package "Owin 1.0.0". You are trying to install this package in a project whose purpose is ".NETFramework, Version = v4.5.2",

I am trying to implement OAuth in my ASP.NET Web Api project. I download packages from NuGet. my friend can normally download all OWIN packages on his computer, but it does not work on my machine. I tried removing the Visual Studio cache, TFS cache, VSCommon cache, resetting visual studio, I also tried reinstalling visual studio, and nothing works. I also tried all versions of .net from version 4.0 to 4.6.1. I am using the Visual Studio 2015 1 community update. The error I am getting is as follows:

Failed to install package "Owin 1.0.0". You are trying to install this package in a project that is designed for ".NETFramework, Version = v4.5.2," but the package does not contain links to assemblies or content files that are compatible with this infrastructure. For more information, contact the author of the package.

+5
source share
3 answers

I believe that I have found a solution.

I ran into the same problem, and this affected not only the Owin package.

I tried to clear my user cache and even uninstall and reinstall Visual Studio (by deleting any AppData files that were associated), but the problem persists.

C:\Users\<<UserName>>\.nuget\packages .

+9

Jetbrains Rider Mac , .net 4.5

, .net

!

0

UnInstall-Package Owin , Install-Package Owin, , , Microsoft.Owin.Host.SystemWeb, , .

0
source

Source: https://habr.com/ru/post/1622365/


All Articles