Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some error or incompatibility when publish singlefile #1174

Open
AiHaibara opened this issue Oct 21, 2024 · 1 comment
Open

some error or incompatibility when publish singlefile #1174

AiHaibara opened this issue Oct 21, 2024 · 1 comment
Labels
dt.core DurableTask.Core help wanted

Comments

@AiHaibara
Copy link

AiHaibara commented Oct 21, 2024

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

@AiHaibara AiHaibara changed the title some error or not incompatibility when publish singlefile some error or incompatibility when publish singlefile Oct 21, 2024
@cgillum
Copy link
Member

cgillum commented Oct 22, 2024

Looks like publishing to a single file breaks our logic which tries to get the version of the current assembly.

@cgillum cgillum added help wanted dt.core DurableTask.Core labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dt.core DurableTask.Core help wanted
Projects
None yet
Development

No branches or pull requests

2 participants