some error or incompatibility when publish singlefile
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/durabletask
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Azure/durabletask#1398 · 2 comments ·
Maintainers usually reply within 3 days
-
Azure Storage backend: control queue partition left unowned for hours/days after lease expiresMay be free again @nytian claimed this 33 days ago, and no pull request is open. Open
Azure/durabletask#1389 · 1 comment · 1 assignee ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Azure/durabletask#1332 ·
Maintainers usually reply within 3 days
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Azure/durabletask#1318 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Azure/durabletask#1301 · 3 comments ·
Maintainers usually reply within 3 days
All issues in Azure/durabletask
Similar issues
-
area:frontend bug FE P3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
klasolsson81/jobbliggaren#2010 ·
Maintainers usually reply within 1 day
-
agentic-workflows untriaged
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
area: homeblaze type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
RicoSuter/Namotion.Interceptor#630 ·
Maintainers usually reply within 1 day
-
Akka.Hosting enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/microsoft-ui-xaml#12158 ·
Maintainers usually reply within 1 day