Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Release 2024.2.0 breaks compatibility with Mono on Android

Đang mở
#1,685 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, csharp, godot
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lệnh gọi mẫu SftpClient.DownloadFile trên Godot 3.x Mono trên Android với SSH.NET 2024.2.0, sau đó so sánh với 2024.1.0 và kiểm tra lỗi tải System.Numerics.Vectors. Được xem là hoàn tất khi việc tải xuống hoạt động trong môi trường Mono Android bị ảnh hưởng mà không yêu cầu người dùng tiếp tục sử dụng 2024.1.0.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
4.4k
Fork
993
Merge trung bình
9 ngày 21 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sshnet/SSH.NET

Tất cả issue của sshnet/SSH.NET

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.