Manage Bluetooth with an ASP.NET app

Eric Marziali 0 Reputation points
2024-07-03T10:06:53.05+00:00

good evening, I find myself creating a web application with asp.net in windows 11 also targeting previous versions, for managing bluetooth. I tried to integrate Windows.Device.Bluetooth with the VS22 package, but I get error NETSDK1130. I would like to know if there is a solution to the problem or if I have to solve it another way.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,506 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,005 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganeshkumar R 660 Reputation points
    2024-07-03T10:14:41.54+00:00

    The error NETSDK1130 typically indicates that a certain platform or feature is not supported by the target framework you're using for your project. In your case, it seems like the issue arises when trying to integrate Windows.Devices.Bluetooth in an ASP.NET web application. This namespace is primarily designed for use in UWP (Universal Windows Platform) applications, and it might not be directly compatible with a web application project.

    Consider using cross-platform Bluetooth libraries that are compatible with .NET Core or .NET 5/6. Some popular libraries include:

    • InTheHand.Net.Bluetooth
    • 32feet.NET

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.