MissingMethodException in Session.Open error in .NET Core 2.0
System.MissingMethodException
when I get to this line: session.Open(sessionOptions)
Using WinSCP 5.13.1.0
My code:
SessionOptions sessionOptions = new SessionOptions { Protocol = WinSCP.Protocol.Sftp, HostName = "10.22.111.12", PortNumber = 22, UserName = "ec2-user", // this is on AWS. linux EC2 instance SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:..." }; using (Session session = new Session()) { session.DebugLogPath = @"C:\Projects_c#\AWS\consoleApp\AMFConsoleApp\log.txt"; session.Open(sessionOptions); // I get the error right here session.MoveFile(filePath, "10.22.111.12/appdata/content"); session.Close(); }
log.txt
attached