We are trying to get Windows Hello to work in our Electron.NET application. All we need is a simple keyvaluepair provided by that function.
My first place to look was to check all Nuget packages but found nothing that would work with .Net 7. There were Fido2 and WebAuthn libraries, but I only need the portion that invokes the Windows Hello function. We were able to come up with a simple solution to open the file explorer by importing a function from user32.dll, so I figured why not Windows Hello?
Anyway I've been sifting through documentation for so long I'm reading the same paragraphs twice, and cannot find anything. I created a dump of the user32.dll file to look for anything related to Windows Hello, and found nothing.
powershell "dumpbin /exports C:\Windows\System32\user32.dll | tee user32_functions.txt"
Edit, this solution does it. To fix the Referencing a Windows metadata component directly when targeting .NET 5 or higher is not supported.
error, you have to specify the version of Windows you want to target in your .csproj.