Re: Different versions of WinSCP
See https://winscp.net/eng/docs/library_install#installing
WinSCP .NET assembly uses the
So make sure you deploy the
Or use
https://winscp.net/eng/docs/library_session
WinSCP .NET assembly uses the
winscp.exe
that's in the same directory as the winscpnet.dll
. Only if it does not find the .exe
there is falls back to alternative locations, like the Program Files
.
So make sure you deploy the
.dll
and the .exe
to the same directory.
Or use
Session.ExecutablePath
to set the path to winscp.exe
explicitly.
https://winscp.net/eng/docs/library_session