Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tmosson1 opened this issue Jun 10, 2021 · 6 comments
Assignees

Comments

@tmosson1
Copy link

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
Copy link
Author

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
Copy link
Author

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.

@kfirprods kfirprods self-assigned this Jun 19, 2021
@kfirprods
Copy link
Owner

kfirprods commented Jun 19, 2021

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)

@0xotHik
Copy link

0xotHik commented Jul 29, 2021

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 🤓)

@tuffstuff9
Copy link

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.

@0xotHik
Copy link

0xotHik commented Aug 17, 2021

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;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants