I have my WindowsFormsApp programmed in c# in visual studio. It is running perfectly on my windows machine.
I included some of the nuget packages(like Renci.SshNet) installed and used while writing the code and it runs perfectly from Visual Studio but when i run the exe from another windows machine, it isn't running.
So i copied the dll(of Renci.SshNet) to the other windows machine to the same folder containing my .exe file and tried running again. This time i can run successfully.
But is there a solution to pack the dll along the .exe and generate a standalone executable that can run on other windows machine without copying the dll everytime?
Note: It does not need to be independent from the .NET framework. I assume that anyone using this exe will have that installed.
It would be great if someone helps me finding solution for this problem and thanks in advance.