Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Could not install package. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6'

$
0
0

Hi,

I created class library in Asp.Net 5.0. I used classic dnx451 framework. Then I published it with "dnu publish -o d:\publish --no-source" and then copied it to the NuGet packages repository. 

After that I opened classic class library project with 4.6 .net framework and I tried to add upper nuget to project. I got error:

"Could not install package '...'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."

Is it possible to create class library in asp.net 5.0 scheme and then use it in classic project?

Thank you


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>