Skip to content

Enable SAC group config for MSBuild.exe.config in VS - #14739

Merged
rainersigwald merged 1 commit into
dotnet:mainfrom
pieandcakes:users/piel/vs_enable_sac
Aug 20, 2026
Merged

rainersigwald merged 1 commit into
dotnet:mainfrom
pieandcakes:users/piel/vs_enable_sac

Conversation

@pieandcakes

Copy link
Copy Markdown
Contributor
  • files.swr / files.arm64.swr: install MSBuild.exe.config as MSBuild.exe.config.template with vs.file.useGroupConfig="devenv" and vs.file.overwriteBindingRedirects=yes, so it joins the devenv SAC group and its binding redirects get merged in.
  • eng/Versions.props: bump MicrosoftVisualStudioEngMicroBuildPluginsSwixBuildVersion to 1.1.973 (the property Tools.csproj actually consumes) since the SAC group-config properties require this newer SwixBuild toolset. Note: 1.1.973 is not resolvable from any currently configured feed; it must already be present in the local/CI NuGet cache to restore successfully.

Fixes #

Context

Changes Made

Testing

Notes

- files.swr / files.arm64.swr: install MSBuild.exe.config as MSBuild.exe.config.template
  with vs.file.useGroupConfig="devenv" and vs.file.overwriteBindingRedirects=yes, so it
  joins the devenv SAC group and its binding redirects get merged in.
- eng/Versions.props: bump MicrosoftVisualStudioEngMicroBuildPluginsSwixBuildVersion to
  1.1.973 (the property Tools.csproj actually consumes) since the SAC group-config
  properties require this newer SwixBuild toolset. Note: 1.1.973 is not resolvable from
  any currently configured feed; it must already be present in the local/CI NuGet cache
  to restore successfully.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 7f53f2b5-a548-4e93-a070-be310016004b
Copilot AI lite review requested due to automatic review settings August 18, 2026 21:10
@pieandcakes
pieandcakes requested a review from a team as a code owner August 18, 2026 21:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the Visual Studio insertion packaging so MSBuild.exe.config participates in VS “group config” (SAC) merging, ensuring binding redirects are merged rather than copied verbatim.

Changes:

  • Install MSBuild.exe.config as MSBuild.exe.config.template and enable group-config + binding-redirect merging for x86/x64/arm64 insertion components.
  • Update the SwixBuild toolset version property used by the internal tooling project to a newer version needed for those SWR properties.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Package/MSBuild.VSSetup/files.swr Installs MSBuild.exe.config as a template and opts into devenv group-config binding redirect merging (x86/x64).
src/Package/MSBuild.VSSetup.Arm64/files.arm64.swr Same template + group-config/binding redirect merge behavior for arm64.
eng/Versions.props Updates the SwixBuild package version property consumed by eng/common/internal/Tools.csproj.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread eng/Versions.props Resolved
@rainersigwald
rainersigwald merged commit 05f0891 into dotnet:main Aug 20, 2026
17 checks passed
rainersigwald added a commit that referenced this pull request Aug 24, 2026
Improves a flaky test that hit #14739
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1558196&view=ms.vss-test-web.build-test-results-tab&runId=42974686&resultId=110072&paneView=debug

### Context

`ComReferenceWalker_Tests.DefinedFunction` failed with no helpful
information.

### Changes Made

- Capture and print the walker's full encountered exceptions through
`ITestOutputHelper`.
- Assert that the walker completed without COM errors before checking
dependencies.
- Include the expected typelib name and GUID plus all actual dependency
GUIDs in assertion failures.
- Use Shouldly for the modified assertions.

Copilot-Session: 09a398e0-55a9-4dfa-9dbb-2d848114f715
JanProvaznik added a commit to JanProvaznik/msbuild that referenced this pull request Nov 7, 2026
The actual LTSC experiment exposed native-image loss in every x86/x64
MSBuild worker and task host: target11/11 use IL versus baseline10/10
native images, causing the two reproducible JIT counter regressions.
The earlier servicing adaptation removed the VS devenv SAC composition
while retaining a different unused SWIX version property.

Restore the complete upstream dotnet#14739 VS packaging contract for x86,
x64 and ARM64, including the exact SwixBuild property consumed by
Tools.csproj at1.1.973. Keep all engine code, .NET10 runtime/compiler
targets and existing maintenance/security package pins unchanged.
Actual experimental native-image/performance requalification is required.

Co-authored-by: Copilot App <[email protected]>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — ffd666fb Deployed Aug 18, 2026 by pieandcakes via pat_pool #671
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.

4 participants