“System.Management currently is only supported for Windows desktop applications” error when dynamically loading a DLL in .NET 6
I’m using the “Microsoft.Windows.Compatibility” package to get the baseboard serial number in a .NET 6 application. My code looks like this: