neilharvey / FileSignatures

A small library for detecting the type of a file based on header signature (also known as magic number).
MIT License
250 stars 41 forks source link

Cannot install nuget on .NetFramework v4.5.2 #3

Closed pablo-gasparini-zz closed 7 years ago

pablo-gasparini-zz commented 7 years ago

When I try to add the package to a project targeting .Net 4.5.2 I get the following error from the Package Manager Console :

Install-Package : Could not install package 'FileSignatures 1.1.0'. 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.
At line:1 char:1
+ Install-Package FileSignatures
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
neilharvey commented 7 years ago

The package currently only targets .NET Core and .NET 4.6.1, but I'll make a new one that includes .NET 4.5.2 as well.

neilharvey commented 7 years ago

This has been done - took a little while than expected because the upgrade to csproj broke the CI build, but if you try again now it should work.