rflechner / ScrapySharp

reborn of https://bitbucket.org/rflechner/scrapysharp
MIT License
346 stars 75 forks source link

Could not install package from nuGet #4

Closed ModernHooman closed 5 years ago

ModernHooman commented 6 years ago

Here is the error I get when try to install the package from nuGet or MyGet :

Install-Package : Could not install package 'ScrapySharp 3.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v2.0', 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.
At line:1 char:1
+ Install-Package ScrapySharp -Version 3.0.0 -Source https://www.myget. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
clintonkopotic commented 5 years ago

I believe it's because the project you are trying to install ScrapySharp into is targeting .NET Framework 2.0, whereas ScrapySharp is dependent on .NET Standard 2.0 and according to the .NET Standard versions table you should change your project's target to .NET Framework 4.6.1 or greater.

doppiogrouprepos commented 5 years ago

This still does not work, I get this same message. Install-Package : Could not install package 'ScrapySharp 3.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', 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. At line:1 char:1