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

some error or incompatibility when publish singlefile

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

Maintainer thường phản hồi trong vòng 3 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
azure, csharp
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu với DurableTask.AzureStorage/Utils.cs tại dòng 32 và AzureStorageOrchestrationServiceSettings.cs tại dòng 38, sau đó tái hiện bằng các lệnh publish single-file .NET 8 được liệt kê. So sánh hành vi khi IncludeAllContentForSelfExtract được bật. Được xem là hoàn tất khi single-file publishing hoạt động với các tổ hợp runtime và kiến trúc đã được báo cáo mà không cần workaround đó.

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

Mô tả

dt.core help wanted

System.TypeInitializationException: The type initializer for 'DurableTask.AzureStorage.Utils' threw an exception.
---> System.ArgumentException: The value cannot be an empty string. (Parameter 'path')
at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName)
at System.IO.Path.GetFullPath(String path)
at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
at DurableTask.AzureStorage.Utils..cctor() in //src/DurableTask.AzureStorage/Utils.cs:line 32
--- End of inner exception stack trace ---
at DurableTask.AzureStorage.AzureStorageOrchestrationServiceSettings..ctor() in /
/src/DurableTask.AzureStorage/AzureStorageOrchestrationServiceSettings.cs:line 38

at

 var settings = new AzureStorageOrchestrationServiceSettings
           {
               StorageAccountClientProvider = new StorageAccountClientProvider(connString)

net8.0

  <PackageReference Include="Microsoft.Azure.DurableTask.AzureStorage" Version="2.0.1" />
  <PackageReference Include="Microsoft.Azure.DurableTask.Core" Version="3.0.0" />

when using
dotnet publish -p:PublishSingleFile=true -c Release -r osx-x64 --self-contained false
or arm64 or --self-contained true both will throw the error like before

but when it using
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
it will ok for it

Ngôn ngữ chính
C#
Star
1.7k
Fork
335
Merge trung bình
5 ngày 3 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 Azure/durabletask

Tất cả issue của Azure/durabletask

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.