Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

Reverts PR #2895 changes now that Arcade PR #16091 has flowed in, which isolates MicroBuild's .NET SDK to .dotnet-microbuild.

Changes

  • Remove rm -rf $(sourcesPath)/.dotnet from vmr-build.yml prep step
  • Change to mkdir -p for idempotent directory creation

Previously, the .dotnet directory was removed to avoid conflicts with MicroBuild's SDK installation. MicroBuild now uses its own isolated .dotnet-microbuild path (configured in install-microbuild.yml), eliminating the need for removal.

Original prompt

This section details on the original issue you should resolve

<issue_title>Revert .dotnet dir removal</issue_title>
<issue_description>The changes in #2895 updated the pipeline to remove the .dotnet dir that was created for the use of MicroBuild. That change should be reverted once dotnet/arcade#16091 has been implemented as it will allow MicroBuild to have it's own separate installation of .NET SDK.</issue_description>

Comments on the Issue (you are @copilot in this section)

@ellahathaway The MicroBuild work has been completed and flowed into the VMR with the latest rebootstrap. Adding the untriaged label so we can discuss in triage again.

💡 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.

@ellahathaway
Copy link
Member

Blocked on #3892. This is not blocked in 10.0 branches.

Copilot AI changed the title [WIP] Revert removal of .dotnet directory for MicroBuild Revert .dotnet dir removal for MicroBuild isolation Dec 18, 2025
Copilot AI requested a review from mthalman December 18, 2025 18:41
@mthalman mthalman marked this pull request as ready for review December 18, 2025 18:55
@mthalman mthalman requested review from a team as code owners December 18, 2025 18:55
Copilot AI review requested due to automatic review settings December 18, 2025 18:55
Copy link
Contributor

Copilot AI left a 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)/.dotnet command before SDK extraction
  • Changed mkdir $(sourcesPath)/.dotnet to mkdir -p $(sourcesPath)/.dotnet for 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"
Copy link

Copilot AI Dec 18, 2025

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.

Suggested change
customPrepArgs="${customPrepArgs} --no-sdk"
customPrepArgs="${customPrepArgs} --no-sdk"
rm -rf $(sourcesPath)/.dotnet

Copilot uses AI. Check for mistakes.
@mthalman
Copy link
Member

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@mthalman
Copy link
Member

/backport to release/10.0.2xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.2xx (link to workflow run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revert .dotnet dir removal

4 participants