C
C#17mo 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
HeGamingOP17mo ago
Am I maybe just missing something? Tell me if you need more info
Angius
Angius17mo 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
HeGamingOP17mo 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
Angius17mo ago
Huh, seems like the namespace is correct
Angius
Angius17mo 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
HeGamingOP17mo 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
Angius17mo 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
HeGamingOP17mo 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
Angius17mo ago
yeah
HeGaming
HeGamingOP17mo ago
I'll look into that thx @ZZZZZZZZZZZZZZZZZZZZZZZZZ I checked it now and the NonInvasiveKeyboardHookLibrary.Fork does the trick
Accord
Accord17mo 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.
Want results from more Discord servers?
Add your server