WebSocket4Net icon indicating copy to clipboard operation
WebSocket4Net copied to clipboard

UWP Errors

Open AlexanderSheety opened this issue 7 years ago • 2 comments

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 avatar Mar 31 '17 17:03 AlexanderSheety

My test project : dropbox

AlexanderSheety avatar Apr 01 '17 12:04 AlexanderSheety

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

wonea avatar Jul 17 '17 11:07 wonea