Skip to content

Can't get Bluetooth or Bluetooth LE to work in a C# Console App #346

Answered by peterfoot
Chris-Upshop asked this question in Q&A
Discussion options

You must be logged in to vote

This happens when the generic net60 (or net70) dll is used from the NuGet rather than the Windows specific one. I'm looking into a way of improving this as it's not clear and currently the unix codebase doesn't throw PlatformNotSupported exception when called on another (probably Windows) platform. The reason for this is usually because the consuming project is a generic .NET project and doesn't specify a platform. It looks like the solution to this is to change the generic dll to include both Windows and Linux runtime support which will make the library bigger but simplify deployment.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Chris-Upshop
Comment options

Answer selected by Chris-Upshop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants