NVentimiglia / Websockets.PCL

C# Websockets for all platforms using native bridges
MIT License
98 stars 36 forks source link

Support NETStandard #27

Open wonea opened 7 years ago

wonea commented 7 years ago

I would like to use WebSockets.PCL with NETStandard

However I get the following error on build;

Install-Package : Package Websockets.Pcl 1.1.9 is not compatible with netstandard1.6 (.NETStandard,Version=v1.6). Package Websockets.Pcl 1.1.9 supports:

Install-Package : One or more packages are incompatible with .NETStandard,Version=v1.6. At line:1 char:1

kolbma commented 7 years ago

Is Net.Standard 2.0 an option? Version 1.6 needs some work to be done...

InquisitorJax commented 5 years ago

second this. .NETStandard 2 would be fine.

johnagar commented 5 years ago

I see this is an old issue but I have just started using Xamarin with .NETStandard 2.0 and am having the same problem. "The type or namespace name 'WebSockets' / 'IWebSocketConnection' could not be found. Package 'Websockets.Pcl 1.1.9' was restored using '.NETFramework,Version=v4.6.1 instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project."

What am I missing? How do I fix this? Any help would be appreciated.