Com-AugustCellars / CoAP-CSharp

CoAP Implementation in C#
Other
41 stars 19 forks source link

Com.Augustcellars.Coap and Xamarin.Mac #45

Closed StefanRademakers closed 6 years ago

StefanRademakers commented 6 years ago

Hello there, I'm trying to use the Com.Augustcellars.Coap package from nuget in a Xamarin.Mac Modern project (Visual Studio for mac). But when I import the latest version 1.1.8.1 the Namespace Com.Augustcellars.Coap is unknown. If I import an older version e.a. 1.1.6 if does seem to work but I get a System.Net.Sockets.SocketException (mono-io-layer-error (100001)). Do you have any ideas on this? Should it be possible to get it to work? Seems to work in a .netStandard 2.0 project.

jimsch commented 6 years ago

One of the things that was fixed when moving up to the 1.1.8 versions was that socket exception layer. Off the top of my head I don't have any ideas and wont be able to look at it for a week.

jimsch commented 6 years ago

Sleeping on this. what runtime version are you targeting w/ Xamarin.Mac? Can you get a choice? You need to be running 4.6.2 of the .NET Framework in order to allow for the use of a .netStandard 1.0 component. One of the components that I rely on switched to .netStarted 1.x and thus I switched as well.

StefanRademakers commented 6 years ago

Hello Jimsch, thanks for the fast reply. The project uses 'Xamarin.Mac Modern', but I have libraries working that use .Net Standard 2.0. So it's unclear to me why it does't work. I'll investigate further! Thanks

jimsch commented 6 years ago

Latest drop up today has Netstandard 1.3 and 2.0 versions.