-
Notifications
You must be signed in to change notification settings - Fork 228
Revert .dotnet dir removal for MicroBuild isolation #3952
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
base: main
Are you sure you want to change the base?
Conversation
|
Blocked on #3892. This is not blocked in 10.0 branches. |
…llation Co-authored-by: mthalman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR aims to revert the removal of the .dotnet directory that was introduced in PR #2895, based on the claim that Arcade PR #16091 has isolated MicroBuild's .NET SDK installation to a separate .dotnet-microbuild directory.
Key Changes
- Removed
rm -rf $(sourcesPath)/.dotnetcommand before SDK extraction - Changed
mkdir $(sourcesPath)/.dotnettomkdir -p $(sourcesPath)/.dotnetfor idempotent directory creation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| fi | ||
| if [[ "$prepSdk" == "false" ]]; then | ||
| customPrepArgs="${customPrepArgs} --no-sdk" |
Copilot
AI
Dec 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of the rm -rf $(sourcesPath)/.dotnet command may be premature. While the PR description states that MicroBuild now uses an isolated .dotnet-microbuild directory (from Arcade PR #16091), the root-level eng/common/core-templates/steps/install-microbuild.yml file (line 29) still installs the MicroBuild .NET SDK to .dotnet, not .dotnet-microbuild. This means both the MicroBuild installation (line 454) and this SDK extraction could potentially write to the same $(sourcesPath)/.dotnet directory, causing conflicts. The rm -rf command should be retained until the root-level MicroBuild installation template is updated to use .dotnet-microbuild.
| customPrepArgs="${customPrepArgs} --no-sdk" | |
| customPrepArgs="${customPrepArgs} --no-sdk" | |
| rm -rf $(sourcesPath)/.dotnet |
|
/backport to release/10.0.1xx |
|
Started backporting to |
|
/backport to release/10.0.2xx |
|
Started backporting to |
Reverts PR #2895 changes now that Arcade PR #16091 has flowed in, which isolates MicroBuild's .NET SDK to
.dotnet-microbuild.Changes
rm -rf $(sourcesPath)/.dotnetfrom vmr-build.yml prep stepmkdir -pfor idempotent directory creationPreviously, the
.dotnetdirectory was removed to avoid conflicts with MicroBuild's SDK installation. MicroBuild now uses its own isolated.dotnet-microbuildpath (configured ininstall-microbuild.yml), eliminating the need for removal.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.