NonInvasiveKeyboardHook icon indicating copy to clipboard operation
NonInvasiveKeyboardHook copied to clipboard

Source code for the .NET Framework version is throwing an error when executing a build.

Open tmosson1 opened this issue 4 years ago • 6 comments

Hello,

I just wanted to let you know that I am getting the following error below when I trying to execute a build of the NonInvasiveKeyboardHookLibrary .NET Framework version.

Your project does not reference ".NETFramework,Version=v4.5.2" framework. Add a reference to ".NETFramework,Version=v4.5.2" in the "TargetFrameworks" property of your project file and then re-run NuGet restore.

I checked the properties and I also unloaded the project file to check the XML markup. It is set to .NET Framework version 4.5.2.

Please follow-up on this issue whenever you get a chance to do so.

Thank you.

tmosson1 avatar Jun 10 '21 13:06 tmosson1

Also I cannot install the nuget package on my .NET Framework 4.8 winform application project as it also throws an error. I didn't capture the error message but it was pointing out that it conflicted with .NET Framework 4.8.

tmosson1 avatar Jun 10 '21 14:06 tmosson1

I think I got it to build. I had to create my own project and add the existing source code over and build it there. I was able to build it with .NET Framework 4.8.

tmosson1 avatar Jun 10 '21 14:06 tmosson1

I think I got it to build. I had to create my own project and add the existing source code over and build it there. I was able to build it with .NET Framework 4.8.

Thank you for this information. I will try to change the package's configuration to make it compatible with .NET framework 4.8, and I'll post here with conclusions soon :)

EDIT: I haven't made much progress and will not be able to dedicate time for this again in the upcoming 2 weeks. If you wish, you can fork this repo and try to get things to work locally. TIP: When you pack a nuget package locally, you can then go to your WinForms project and install it using the .nupkg file (without ever uploading it to NuGET)

kfirprods avatar Jun 19 '21 08:06 kfirprods

Yep, can confirm — NuGet package was not installing not on .Net Framework 4.6 project, nor on 4.7.2

"NonInvasiveKeyboardHookLibrary" project from 2.1.1 source code was not building either. Created a new project, added *.cs files — built successfully.

(But it's a trifle; thank you for your work on the library 🤓)

0xotHik avatar Jul 29 '21 15:07 0xotHik

Had the same issue, was getting that error when trying to install 2.11.

However, when I installed the 2.1.0 nuget package, it installed just fine.

tuffstuff9 avatar Aug 07 '21 13:08 tuffstuff9

Okay, NuGet 2.1.1 successfully installed after I migrate my project from .Net Framework 4.7.2 to .Net 5, but VS did not let me use it — not with "using NonInvasiveKeyboardHookLibrary", not with "private NonInvasiveKeyboardHookLibrary.KeyboardHookManager m_keyboardHookManager;"

0xotHik avatar Aug 17 '21 19:08 0xotHik