weltkante / managed-lzma

C# implementation of LZMA and 7zip
MIT License
140 stars 22 forks source link

Could not install package 'ManagedLzma 0.2.0-alpha-4' #15

Closed icnocop closed 8 years ago

icnocop commented 8 years ago
PM> Install-Package ManagedLzma -Pre
Attempting to resolve dependency 'System.Collections.Immutable (≥ 1.1.36)'.
Installing 'System.Collections.Immutable 1.1.36'.
You are downloading System.Collections.Immutable from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=329770. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'System.Collections.Immutable 1.1.36'.
Installing 'ManagedLzma 0.2.0-alpha-4'.
Successfully installed 'ManagedLzma 0.2.0-alpha-4'.
Adding 'System.Collections.Immutable 1.1.36' to MyTestLibrary.
Successfully added 'System.Collections.Immutable 1.1.36' to MyTestLibrary.
Adding 'ManagedLzma 0.2.0-alpha-4' to MyTestLibrary.
Uninstalling 'ManagedLzma 0.2.0-alpha-4'.
Successfully uninstalled 'ManagedLzma 0.2.0-alpha-4'.
Uninstalling 'System.Collections.Immutable 1.1.36'.
Successfully uninstalled 'System.Collections.Immutable 1.1.36'.
Install failed. Rolling back...
Install-Package : Could not install package 'ManagedLzma 0.2.0-alpha-4'. You are trying to install this package into a project that targets 
'.NETFramework,Version=v4.5.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
+ Install-Package ManagedLzma -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
weltkante commented 8 years ago

The nuget package currently only contains the library built against .net 4.6

.net 4.5 is possible but it needs some workarounds against .net framework issues. I'll take a look how to package a separate .net 4.5 version in the same nuget package and hopefully push an update later today once I'm home from work.

weltkante commented 8 years ago

I've updated the nuget package to include a .net 4.5 build (the minimum requirement) so you should now be able to add a reference (unless I messed up the nuspec file, not really having much experience with it).

weltkante commented 8 years ago

As mentioned before this should have been fixed with alpha-5 so I'm closing this issue.