inthehand / 32feet

Personal Area Networking for .NET. Open source and professionally supported
https://inthehand.com/components/32feet/
MIT License
817 stars 206 forks source link

Operation is not supported in this platform #128

Open orcunor opened 3 years ago

orcunor commented 3 years ago

err1

I installed InTheHandBluetoothLe and microsoft.windows.cswinrt libraries and only wrote a single method and got this error.

stephen-systemfriend commented 3 years ago

You'll need to give more information - is this a donet standard or a dotnet core project, are you using unity (and if so, mono etc) and maybe some other things.

David-1251 commented 3 years ago

I get this same exception when using this method in .NET 5.

r-pankevicius commented 2 years ago

Should be PlatformNotSupportedException due to https://docs.microsoft.com/en-us/dotnet/core/compatibility/interop/5.0/built-in-support-for-winrt-removed

peterfoot commented 2 years ago

What is your target platform - which Windows 10 version? Is it older than 10.0.19041?

r-pankevicius commented 2 years ago

It was just my guess what it could be. I managed to link my .net 5 exe with InTheHand.BluetoothLE and scan for devices, ran into other issue, will fill it soon.