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 (22.214.171.124) does not match version of this assembly C:\path_to_project\bin\Debug\SFTPUploader.exe (126.96.36.199)."
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?