kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
752 stars 272 forks source link

UWP Sample does not compile #116

Open Sadchant opened 6 years ago

Sadchant commented 6 years ago

In my .NET Core Console Application WebSocket4Net works without a Problem. I tried it then in my UWP App and it didnt work. After that, i cloned your UWP sample Project and it failed to compile with the same error:

NU1608: Detected package version outside of dependency constraint: Microsoft.NETCore.Runtime.Native 1.0.0 requires System.Diagnostics.Contracts (= 4.0.0) but version System.Diagnostics.Contracts 4.3.0 was resolved. NU1107: Version conflict detected for System.Collections. Reference the package directly from the project to resolve this issue. WebSocket4Net.UWP -> SuperSocket.ClientEngine.Core 0.9.0 -> System.Net.Sockets 4.3.0 -> System.Net.Primitives 4.3.0 -> runtime.win.System.Net.Primitives 4.3.0 -> System.Collections (>= 4.3.0) WebSocket4Net.UWP -> Microsoft.NETCore.UniversalWindowsPlatform 5.0.0 -> Microsoft.NETCore.Runtime 1.0.0 -> Microsoft.NETCore.Runtime.CoreCLR-arm 1.0.0 -> System.Collections (= 4.0.10). NU1203: System.Net.Security 4.3.0 provides a compile-time reference assembly for System.Net.Security on UAP,Version=v10.0.10240, but there is no run-time assembly compatible with win10-arm. NU1203: System.Net.Security 4.3.0 provides a compile-time reference assembly for System.Net.Security on UAP,Version=v10.0.10240, but there is no run-time assembly compatible with win10-arm-aot. NU1203: System.Net.Security 4.3.0 provides a compile-time reference assembly for System.Net.Security on UAP,Version=v10.0.10240, but there is no run-time assembly compatible with win10-x64. NU1203: System.Net.Security 4.3.0 provides a compile-time reference assembly for System.Net.Security on UAP,Version=v10.0.10240, but there is no run-time assembly compatible with win10-x64-aot. NU1203: System.Net.Security 4.3.0 provides a compile-time reference assembly for System.Net.Security on UAP,Version=v10.0.10240, but there is no run-time assembly compatible with win10-x86. NU1203: System.Net.Security 4.3.0 provides a compile-time reference assembly for System.Net.Security on UAP,Version=v10.0.10240, but there is no run-time assembly compatible with win10-x86-aot. NuGet package restore failed.