Fix automation tab assembly loading in published builds #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bug/automation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this pull request do?
The recently added automation tab can't compile C# on published builds. It's a problem with the way it loads assemblies in single-file apps, where there are no DLLs on the filesystem beside the exe, so we extract them from the running executable.
In single-file published builds,
TRUSTED_PLATFORM_ASSEMBLIESpaths maynot exist or be accessible. Changed
GetMetadataReferencesto useAppDomain.CurrentDomain.GetAssemblies()and the existingTryGetRawMetadataapproach that already handles single-file scenarios correctly.
How is it tested?
Manually on published macos build