inthehand / 32feet

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

InTheHand.BluetoothLE : Targeting net6 (WebAssembly) #260

Open igiona opened 1 year ago

igiona commented 1 year ago

In a WebAssembly PlatformUno based project, I'm targeting "net6".

[...]
    <TargetFramework>net6.0</TargetFramework>
[...]
    <PackageReference Include="InTheHand.Net.Bluetooth" Version="4.0.33.1" />
    <PackageReference Include="InTheHand.BluetoothLE" Version="4.0.27" />
[...]

and I'm getting the following error:

Error NETSDK1149 InTheHand.BluetoothLE.dll cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149 UnoFigma.Wasm C:\Program Files\dotnet\sdk\7.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets 1027

Is there a plan to support such scenario? Blazor appears to have Bluetooth access: https://github.com/valerii-sovytskyi/Blazor.Bluetooth

peterfoot commented 1 year ago

WebAssembly support is planned, but not available yet.