I started out with 25.0.0 and using the following code:
using var sftpClient = new SftpClient("somehost.com", "someuser", "somepassword");
sftpClient.Connect();
string imageFile = "/home/someuser/shared/somefile.png";
using var stream = new MemoryStream();
sftpClient.DownloadFile(imageFile, stream, x =>
{
Console.Clear();
Console.SetCursorPosition(0, 0);
Console.Write($"{x / 1024 / 1024:000}%");
});
sftpClient.Disconnect();
It would fail at sftpClient.DownloadFile(...)
Output:
ssh.net System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics.Vectors`
I then started from 2020.0.1 which worked like a charm.
I then tried the following versions:
-2020.0.2
2023.0.0
2024.0.0
2024.1.0
These all worked.
When I tried 2024.2.0 I ran into the same issue again.
Godot 3.x uses Mono on Android instead of .NET5/6/7/8/9
I report this in the hopes it can be solved, but also as a workaround for anyone who needs it: Stick with 2024.1.0 for now.
I started out with
25.0.0and using the following code:It would fail at
sftpClient.DownloadFile(...)Output:
I then started from
2020.0.1which worked like a charm.I then tried the following versions:
-
2020.0.22023.0.02024.0.02024.1.0These all worked.
When I tried
2024.2.0I ran into the same issue again.Godot 3.x uses Mono on Android instead of .NET5/6/7/8/9
I report this in the hopes it can be solved, but also as a workaround for anyone who needs it: Stick with
2024.1.0for now.