Skip to content

Release 2024.2.0 breaks compatibility with Mono on Android #1685

@timothyparez

Description

@timothyparez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions