[release/8.0-rc1] [mono] Add a --path command line argument as an alternative to MONO_P… #90678
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Backport of #90544 to release/8.0-rc1
This PR adds an additional command line argument
--path
as an alternative toMONO_PATH
env variable. TheMONO_PATH
is used to point to the directory where all the assemblies are for the AOT compiler. If there are multiple directories, they are split by colon. When building an apple mobile app remotely from Windows, the intermediate and output path is set to a full Windows path which contains colon. The expected behavior was to locate all assemblies required for AOT compilation, but instead, the AOT compiler exited with an error code.The fix for this issue includes adding the new command line argument
--path
which can be specified multiple times.Customer Impact
The issue was discovered by a team member. The fix should help resolving #90422, which should allow customers building apple mobile apps on a remote Mac using Windows.
Testing
Manual testing was performed, ensuring that the AOT compiler can resolve assemblies from paths passed using the
--path
command line argument, which may contain colon symbols. The issue has been reproduced locally, and has been fixed.Risk
Low risk. This change involves adding a new command line argument to the AOT compiler.
The change doesn't affect code that ships in a NuGet package.