Azure / Azure/durabletask

some error or incompatibility when publish singlefile

Open
#1,174 1 comment 0 reactions 0 assignees View on GitHub
dt.core help wanted
Dominant language
C#
Stars
1.7k
Forks
335
Avg merge
2d 23h
Merged PRs (30d)
6

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
```


```

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
` true
`
it will ok for it

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.