prasannavl / WinApi

A simple, direct, ultra-thin CLR library for high-performance Win32 Native Interop
Apache License 2.0
823 stars 101 forks source link

Cannot install NuGet package #7

Closed dori4n closed 7 years ago

dori4n commented 7 years ago

It appears the NuGet package for .NET Core is packaged incorrectly and contains the .NET 4.6 Portable binaries.

Restoring packages for C:\Users\Dorian\Source\Repos\Solution\Project\Project.csproj...
  GET https://api.nuget.org/v3-flatcontainer/winapi/index.json
  OK https://api.nuget.org/v3-flatcontainer/winapi/index.json 468ms
  GET https://api.nuget.org/v3-flatcontainer/winapi/3.1.0/winapi.3.1.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/winapi/3.1.0/winapi.3.1.0.nupkg 25ms
  GET https://api.nuget.org/v3-flatcontainer/netcoreex.binaryextensions/index.json
  GET https://api.nuget.org/v3-flatcontainer/netcoreex.geometry/index.json
  OK https://api.nuget.org/v3-flatcontainer/netcoreex.binaryextensions/index.json 486ms
  GET https://api.nuget.org/v3-flatcontainer/netcoreex.binaryextensions/2.0.0/netcoreex.binaryextensions.2.0.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/netcoreex.binaryextensions/2.0.0/netcoreex.binaryextensions.2.0.0.nupkg 26ms
  OK https://api.nuget.org/v3-flatcontainer/netcoreex.geometry/index.json 551ms
  GET https://api.nuget.org/v3-flatcontainer/netcoreex.geometry/2.1.0/netcoreex.geometry.2.1.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/netcoreex.geometry/2.1.0/netcoreex.geometry.2.1.0.nupkg 26ms
Installing NetCoreEx.Geometry 2.1.0.
Installing NetCoreEx.BinaryExtensions 2.0.0.
Installing WinApi 3.1.0.
Package WinApi 3.1.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package WinApi 3.1.0 supports: portable46-net451+win81 (.NETPortable,Version=v4.6,Profile=Profile44)
Package NetCoreEx.BinaryExtensions 2.0.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package NetCoreEx.BinaryExtensions 2.0.0 supports: portable46-net451+win81 (.NETPortable,Version=v4.6,Profile=Profile44)
Package NetCoreEx.Geometry 2.1.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package NetCoreEx.Geometry 2.1.0 supports: portable46-net451+win81 (.NETPortable,Version=v4.6,Profile=Profile44)
One or more packages are incompatible with .NETCoreApp,Version=v1.1.
Package restore failed. Rolling back package changes for 'Project'.
Time Elapsed: 00:00:01.7415987
========== Finished ==========
prasannavl commented 7 years ago

Thanks @dorianmuthig - https://github.com/prasannavl/WinApi/issues/8 should fix this. Will get on this shortly.

prasannavl commented 7 years ago

v4.0 now released, which migrates everything to .NET core, and makes managing this easier. That should fix this.