You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I publish AOT binary with /p:AssemblyName parameter then I get Unhandled exception. System.TypeLoadException: Could not load type kind of error when executing the binary
I am trying to set final output binary name with /p:AssemblyName parameter. If I leave /p:AssemblyName out then the binary works (but binary file name is clitool).
To Reproduce
You can clone https://github.com/mcraiha/CSharp-AUDALF and move to clitool folder and execute dotnet publish -o out --configuration Release -r linux-x64 /p:AssemblyName=audalf-cli
and then try to execute the binary with ./audalf-cli
Exceptions (if any)
Unhandled exception. System.TypeLoadException: Could not load type 'CSharp_AUDALF.AUDALF_Deserialize' from assembly 'audalf-cli, Version=1.0.0.0, Culture=neutral, PublicKey=null'.
at AudalfCli.Program.Main(String[] args) + 0x16
Aborted (core dumped)
Further technical details
I only tested this with Ubuntu 24.04 + .NET 9
The text was updated successfully, but these errors were encountered:
Describe the bug
If I publish AOT binary with /p:AssemblyName parameter then I get
Unhandled exception. System.TypeLoadException: Could not load type
kind of error when executing the binaryI am trying to set final output binary name with /p:AssemblyName parameter. If I leave /p:AssemblyName out then the binary works (but binary file name is clitool).
To Reproduce
You can clone https://github.com/mcraiha/CSharp-AUDALF and move to clitool folder and execute
dotnet publish -o out --configuration Release -r linux-x64 /p:AssemblyName=audalf-cli
and then try to execute the binary with
./audalf-cli
Exceptions (if any)
Further technical details
I only tested this with Ubuntu 24.04 + .NET 9
The text was updated successfully, but these errors were encountered: