I’ve posted about an issue on Github with the Modbus library and I’d like to be able to work with the source so I can make changes and offer feedback.
When I try to add the Modbus library to my project and build it, I get the following error:
error : This project references NuGet package(s) that are missing on this computer. The missing file is ..\packages\GHIElectronics.Tools.NuGetPacker.1.0.3\build\GHIElectronics.Tools.NuGetPacker.targets.
When I use the Nuget package manager, this is already installed.
What do we need to do to build our app with the actual source on Github for testing?
Not sure if this is your issue or not but when I was working with the Modbus library I added it as an existing project to my main project. If I recall correctly I had to add some references in the Modbus project with Nuget for:
In short, to modify and then build the source you would have needed to first clone the repository. If you have done that, then you need to create referances from those local files, not from nuget. Basically anything you have now cloned, the nuget or at least the referance should be removed.
You may need to build the indivudual libraries first to get a referance. And take note of the build order/dependacy tree.
To be technically accurate you dont need to clone the repository, rather just have downloaded the source locally, but if you want to contribute like you say, you should clone the repo so you can then make pull requests
I’ve managed to build the library by loading the total solution in a separate VS instance and reference the DLL needed in the code I am working on. That works as my change to add the Thread.Sleep(0) in the Modbus library means that my touch screen now works without missing touches.
Hi Steve, it is in the libraries. If I click a button when the Modbus is in the receive telegram, there is no response from the touch driver (cap touch with the FT5x) If I add the Thread.Sleep(0) in the library, the touch now responds to every touch. I have enabled debug to show down and up and it freezes if the Sleep is not included. The receive is in a loop with no yield for the Modbus timeout.