WinSCPHelper2 6.3.6
dotnet add package WinSCPHelper2 --version 6.3.6
NuGet\Install-Package WinSCPHelper2 -Version 6.3.6
<PackageReference Include="WinSCPHelper2" Version="6.3.6" />
paket add WinSCPHelper2 --version 6.3.6
#r "nuget: WinSCPHelper2, 6.3.6"
// Install WinSCPHelper2 as a Cake Addin #addin nuget:?package=WinSCPHelper2&version=6.3.6 // Install WinSCPHelper2 as a Cake Tool #tool nuget:?package=WinSCPHelper2&version=6.3.6
WinSCPHelper2: A Robust SFTP File Transfer Library
WinSCPHelper2 is a powerful library designed for seamless uploading and downloading of files from remote servers via SFTP, utilizing the WinSCP Assembly Library. It offers exceptional speed, flexibility, and ease of use.
Building on the foundation of WinSCPHelper, WinSCPHelper2 eliminates the security vulnerabilities associated with the older version of WinSCP included in the original package. This ensures that all previous security concerns are fully addressed, providing a more secure and reliable solution.
Getting Started
How to install
- Right click on your project and select "Manage NuGet Package".
- Search for "WinSCPHelper2".
- Install WinSCPHelper2 in your project.
Sample Code
- Below is a sample code for downloading files from a remote directory to your local folder.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinSCPHelper2;
namespace WinScpPlayground
{
class Program
{
static void Main(string[] args)
{
WinScpConnection winScpConnection =
new WinScpConnection("hostname",
"sftpusername",
"sftppassword");
var currentSession = winScpConnection.Open();
var currentList =
winScpConnection.Download(currentSession,
"/var/www/myremotedirectory",
@"C:\mytargetfolder");
//for verification - display names of downloaded file
foreach (var file in currentList)
Console.WriteLine(file.FileName);
}
}
}
- You can also download a single file by doing this
WinScpConnection winScpConnection =
new WinScpConnection("hostname", "sftpusername", "sftppassword");
var currentSession = winScpConnection.Open();
winScpConnection.Download(currentSession,
"/var/www/myremotedirectory/remotefile.jpg",
@"C:\mytargetfolder\localfile.jpg");
- Here is a snippet in uploading files to your target remote directory.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinSCPHelper2;
namespace WinScpPlayground
{
class Program
{
static void Main(string[] args)
{
WinScpConnection winScpConnection =
new WinScpConnection("hostname",
"sftpusername",
"sftppassword");
var currentSession = winScpConnection.Open();
winScpConnection.Upload(currentSession,
@"C:\localfolderforupload\*.*",
"/var/www/myremotedirectory/*.*");
}
}
}
- Uploading a single file is also doable. Like so,
WinScpConnection winScpConnection =
new WinScpConnection("hostname", "sftpusername", "sftppassword");
var currentSession = winScpConnection.Open();
winScpConnection.Upload(currentSession,
@"C:\localfolderforupload\localfile.jpg",
"/var/www/myremotedirectory/remotefile.jpg");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 is compatible. |
-
.NETFramework 4.0
- WinSCP (>= 6.3.6)
-
.NETFramework 4.5
- WinSCP (>= 6.3.6)
-
.NETFramework 4.5.1
- WinSCP (>= 6.3.6)
-
.NETFramework 4.5.2
- WinSCP (>= 6.3.6)
-
.NETFramework 4.6
- WinSCP (>= 6.3.6)
-
.NETFramework 4.6.1
- WinSCP (>= 6.3.6)
-
.NETFramework 4.6.2
- WinSCP (>= 6.3.6)
-
.NETFramework 4.7
- WinSCP (>= 6.3.6)
-
.NETFramework 4.7.1
- WinSCP (>= 6.3.6)
-
.NETFramework 4.7.2
- WinSCP (>= 6.3.6)
-
.NETFramework 4.8
- WinSCP (>= 6.3.6)
-
.NETFramework 4.8.1
- WinSCP (>= 6.3.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on WinSCPHelper2:
Package | Downloads |
---|---|
NCSSBO
SAP B1 Serverkomponente |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.3.6 | 154 | 12/6/2024 |
6.3.5 | 511 | 9/10/2024 |
6.3.4 | 293 | 6/20/2024 |
6.3.3 | 525 | 4/19/2024 |
6.3.2 | 357 | 3/13/2024 |
6.3.1 | 143 | 2/28/2024 |
6.3.0 | 137 | 2/19/2024 |
6.1.3 | 137 | 2/15/2024 |
6.1.2 | 326 | 9/21/2023 |
6.1.1.1 | 208 | 8/16/2023 |
6.1.1 | 219 | 7/4/2023 |
6.1.0 | 211 | 5/23/2023 |
5.21.8 | 524 | 4/13/2023 |
5.21.7 | 755 | 1/26/2023 |
5.21.6.1 | 479 | 12/1/2022 |
5.21.6 | 320 | 12/1/2022 |
5.21.5.2 | 436 | 11/12/2022 |
5.21.5.1 | 512 | 10/8/2022 |
5.21.5 | 409 | 10/8/2022 |
5.21.3 | 449 | 9/8/2022 |
5.21.2 | 546 | 8/27/2022 |
Now using WinSCP 6.3.6.