Sitelet https://github.com/Azure/durabletask/issues/1174
Skip to content

some error or incompatibility when publish singlefile #1174

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions