Problem installing new Nuget Pack

0

I try to download PDF.js via Nuget, however it gives problem:

Error: Could not install package 'PDF.js 1.3.91'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', 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.

I'm using Visual Studio for the year 2015.

Has anyone ever gone through this? And how to solve?

    
asked by anonymous 01.12.2016 / 05:27

1 answer

0

This occurs when the version of the .NET Framework in which the NuGet package was compiled differs from the version of the project you are trying to install.

The biggest problem is that the owner of the Nuget package did not specify which version of the .NET Framework the NuGet package depends on. And we ended up receiving this super inconvenient error.

In the case of this particular package, to make matters worse, the link to the project site is fake . So we can not even go to the official compose site to check out the compiled version.

What you can do to try to run is to change the version of .NET Framrwork that will compile your project until you find one that works.

On the NuGet package site you have a "Contact Owners" link. You can also send them a message asking for the version and asking them to add the .NET Framework version as a dependency.

    
01.12.2016 / 08:48