kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
Apache License 2.0
766 stars 273 forks source link

UWP Errors #87

Open AlexanderSheety opened 7 years ago

AlexanderSheety commented 7 years ago

Hello Kerry! I have pcl xamarin project! When i build uwp project will run with this errors:

1.Some packages are not compatible with UAP,Version=v10.0 (win10-x86).
2.System.Net.Security 4.0.0 provides a compile-time reference assembly for System.Net.Security on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86.

My Pcl project.json:

{
  "supports": {},
  "dependencies": {
    "NETStandard.Library": "1.6.1",
    "WebSocket4Net": "0.15.0-beta6",
    "Xamarin.Forms": "2.3.3.193"
  },
  "frameworks": {
    "netstandard1.4": {
      "imports": "portable-net45+win8+wpa81+wp8"
    }
  }
}

My UWP project.json:

{
  "dependencies": {
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2"
  },
  "frameworks": {
    "uap10.0": {"imports": [ "netstandard1.4"]}
  },
  "runtimes": {
    "win10-x86": {},
  }
}

Can you help me ?

AlexanderSheety commented 7 years ago

My test project : dropbox

wonea commented 7 years ago

You could try to add the dependency in "runtimes". Open the speech marks and Visual Studio will help.