interfax / interfax-dotnet

Fax send and receive in .NET with the InterFAX REST API
https://www.interfax.net/en/dev/dotnet
MIT License
8 stars 14 forks source link

Error on Mac with .NET for Mac #8

Closed cbetta closed 7 years ago

cbetta commented 7 years ago

I've installed .NET for Mac via: https://www.microsoft.com/net/core#macos

I am using VS Code with Nuget installed, and when I install the file and run dotnet restore I get the following error.

Errors in /Users/cbetta/code/playground/hwapp/hwapp.csproj
      Package InterFAX.Api 1.0.4 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package InterFAX.Api 1.0.4 supports: net452 (.NETFramew
ork,Version=v4.5.2)
      Package Microsoft.AspNet.WebApi.Client 5.2.3 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.AspNet.WebApi.Clien
t 5.2.3 supports:
        - net45 (.NETFramework,Version=v4.5)
        - portable-net45+netcore45+wp8+wp81+wpa81 (.NETPortable,Version=v0.0,Profile=wp8+netcore45+net45+wp81+wpa81)
      One or more packages are incompatible with .NETCoreApp,Version=v1.1.

Any clues?

cbetta commented 7 years ago

I added this line to my .csproj's PropertyGroup

<PackageTargetFallback>$(PackageTargetFallback);portable-win+net452+wp8+win81+wpa8</PackageTargetFallback>

The error is now a lot shorter:

Errors in /Users/cbetta/code/playground/hwapp/hwapp.csproj
      Package InterFAX.Api 1.0.4 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package InterFAX.Api 1.0.4 supports: net452 (.NETFramew
ork,Version=v4.5.2)
      One or more packages are incompatible with .NETCoreApp,Version=v1.1.
cbetta commented 7 years ago

Ok it seems the current SDK is not build for dotnetcore, which is not your old school dotnet. Closing this until we deem support for this necessary.