C
C#2y ago
HeGaming

❔ NuGet Package doesn't get recognized

I installed a NuGet Package, but when I now try to use it i get the attached error message
11 Replies
HeGaming
HeGamingOP2y ago
Am I maybe just missing something? Tell me if you need more info
Angius
Angius2y ago
Name of the package != the namespace it uses So look up the docs for this nuget and see what using you actually need
HeGaming
HeGamingOP2y ago
There isn't much documentation He's got an example code though, but there he does use that same Name to include the library
Angius
Angius2y ago
Huh, seems like the namespace is correct
Angius
Angius2y ago
GitHub
NonInvasiveKeyboardHook/source/NonInvasiveKeyboardHook/NonInvasiveK...
A C# hotkey manager that uses a low level global hook, but allows registering for specific keys to reduce invasion of user privacy - NonInvasiveKeyboardHook/source/NonInvasiveKeyboardHook/NonInvasi...
HeGaming
HeGamingOP2y ago
But the way I did it would be correct if that would be the correct name of the namesoace? yep So you think too that this should work?
Angius
Angius2y ago
Also, make sure you use the correct package for your version of .NET NonInvasiveKeyboardHookLibrary is for .NET Framework, and NonInvasiveKeyboardHookLibrary.Core is for .NET Core and, presumably, above And, apparently, you're not the only person having issues with referencing the namespace: https://github.com/kfirprods/NonInvasiveKeyboardHook/issues/10
HeGaming
HeGamingOP2y ago
hrmm I already thought that this should be correct I very rarely use NuGet Packages but it all semed correct to me and that explains it
Angius
Angius2y ago
yeah
HeGaming
HeGamingOP2y ago
I'll look into that thx @ZZZZZZZZZZZZZZZZZZZZZZZZZ I checked it now and the NonInvasiveKeyboardHookLibrary.Fork does the trick
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?