CommandLine.dll: Internal assembly name doesn't match the assembly name #92767
Labels
area-Infrastructure-mono
needs-further-triage
Issue has been initially triaged, but needs deeper consideration or reconsideration
Milestone
Description
There is a mismatch between the
InternalName
andOriginalFilename
values in the assembly and its actual name. While it's expected to beCommandLine.dll
, it iscommandline.dll
.Here are details from the assembly:
This mismatch causes a runtime issue in Mono embedding scenarios on apple mobile platforms. When the assembly is referenced by another, it cannot be loaded, resulting in the error:
Repro steps
Mismatch in Assembly and OriginalFilename Causes Runtime Issue in Mono Embedding on Apple Mobile Platforms
Workaround
If the assembly is not used, the parameter
/p:PublishTrimmed=true
should be passed to remove the assembly from the app bundle.An alternative is to pass the
--aot-lazy-assembly-load
runtime parameter, which shouldn't load all referenced assemblies during the startup. However, if the the referenced assembly is used, the runtime will abort because these kinds of errors can only be handled when loading the AOT image, not later.The text was updated successfully, but these errors were encountered: