Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

some error or incompatibility when publish singlefile

Open
#1,174 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, csharp
Domain
build-system

Research direction

Start with DurableTask.AzureStorage/Utils.cs at line 32 and AzureStorageOrchestrationServiceSettings.cs at line 38, then reproduce with the listed .NET 8 single-file publish commands. Compare behavior with IncludeAllContentForSelfExtract enabled. Done means single-file publishing works for the reported runtime and architecture combinations without requiring that workaround.

Written by the indexing model from the issue text.

Description

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

Dominant language
C#
Stars
1.7k
Forks
335
Avg merge
5d 3h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/durabletask

All issues in Azure/durabletask

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.