Search code examples
c#.netftpvisual-studio-2017visual-studio-extensions

Visual Studio Extensions SDK - can we access FTP functions?


I am trying to build a Visual Studio extension (using VS 2017 Community).

Visual Studio already comes with the ability to publish files via FTP to a remote server (for website projects); so obviously, there must be some sort of FTP library (or class) within Visual Studio.

My Question:

Does anyone know if there is an FTP class within the Visual Studio SDK that allows developers to publish files via FTP? Currently, I have not found anything within the Visual Studio Extensions SDK documentation -- but I thought I should ask those who may be in the know.

Thanks in advance.


Solution

  • Microsoft Visual Studio uses a licensed copy of Rebex FTP/SSL client library,

    https://www.rebex.net/ftp-ssl.net/default.aspx

    which can be found in path such as C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Rebex.Net.Ftp.dll

    Whether you can consume that library in your extension is not clear. So if you do want to be freely working on your extension, use an open source FTP library or the .NET Framework built-in classes might be a better option.