Yes, that worked. Thank you.
In a new project in Visual Studio 2017, WinSCPnet v5.15.3 is downloaded from Nuget Package Manager everything is working smoothly. I installed Costura.Fody v3.3.3 so that every dll is embeded in the .exe file for easier distribution and when it runs I get the error
"The version of C:\path_to_project\bin\Debug\winscp.exe (220.127.116.11) does not match version of this assembly C:\path_to_project\bin\Debug\SFTPUploader.exe (18.104.22.168)."
I worked around this error by excluding WinScpnet assembly in the FodyWeavers.xml like this
I dont know if this is a problem in winscpnet or costura.fody but do you know how to solve it?