Re: WinSCP .Net Deployment
Your duplicate question on StackOverflow:
https://stackoverflow.com/q/29239000/850848
My answer was:
It looks like you are publishing your application with a different version of the assembly, than you have built the application against.
The WinSCP .NET assembly version 1.0.6.3261 comes with WinSCP 5.1.5.
I suggest you remove all references to WinSCP from your project, delete all copies of the assembly, and reinstall the assembly from NuGet.
Then make sure that:
- In Solution Explorer, the Copy Local property is set to True for
- In Project properties, go to Publish page, click Application Files and make sure that Publish Status is set to Include for
(though these should be defaults, when installing the assembly from NuGet)
https://stackoverflow.com/q/29239000/850848
My answer was:
It looks like you are publishing your application with a different version of the assembly, than you have built the application against.
The WinSCP .NET assembly version 1.0.6.3261 comes with WinSCP 5.1.5.
I suggest you remove all references to WinSCP from your project, delete all copies of the assembly, and reinstall the assembly from NuGet.
Then make sure that:
- In Solution Explorer, the Copy Local property is set to True for
WinSCPnet.dll
- In Project properties, go to Publish page, click Application Files and make sure that Publish Status is set to Include for
WinSCPnet.dll
(though these should be defaults, when installing the assembly from NuGet)