WinSCP Classes Not Available in Visual Studio 2012

Advertisement

SkipLewis
Joined:
Posts:
4

WinSCP Classes Not Available in Visual Studio 2012

Just downloaded and exploded the .ZIP for winscpnet.dll and winscp.exe. Then copied these files to the \bin folder of my VS project.

Object Explorer doesn't show any WinSCP components. Added "Imports WinSCP" to my VB.NET Code and tried to define a New SessionOptions Class, but the Class is considered invalid. I then successfully registered the .DLL using the "Registering for COM" instructions but these was no change.

I've closed and reopened VS after each change in case a refresh was needed.

Also tried these files in /obj/debug as the CodeProject article suggests. File permissions seems fine.

My machine is 64 bit and .NET 4.5.

Thanks in advance for any suggestions.

Skip Lewis

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,659
Location:
Prague, Czechia

Re: WinSCP Classes Not Available in Visual Studio 2012

Did you add winscpnet.dll as a reference to your project?

Or for a simplicity, use WinSCP NuGet package:
https://winscp.net/eng/docs/library_install#nuget

No point registering the assembly for COM to use it from .NET language.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum