Commit c1d5007
authored
Remove MachineIndependent configuration (#13180)
### Context
The `MachineIndependent` configuration enabled portable/xcopy MSBuild
toolsets for Mono environments by disabling machine-specific features
(registry, GAC, Visual Studio integration). With Mono EOL, this mode is
obsolete.
### Changes Made
- **Directory.Build.props**: Removed `MachineIndependent` from
`Configurations` property and deleted conditional PropertyGroup
- **src/Directory.BeforeCommon.targets**: Removed 12
`MachineIndependentBuild` conditions; feature flags now unconditionally
defined for .NET Framework targets:
- Registry access: `FEATURE_REGISTRY_TOOLSETS`, `FEATURE_REGISTRY_SDKS`,
`FEATURE_REGISTRYHIVE_DYNDATA`, `FEATURE_WIN32_REGISTRY`
- GAC: `FEATURE_GAC`
- Environment: `FEATURE_ENCODING_DEFAULT`, `FEATURE_INSTALLED_MSBUILD`
- Build features: `FEATURE_NODE_REUSE`, `FEATURE_NET35_TASKHOST`,
`FEATURE_SECURITY_PERMISSIONS`
- Simplified `FEATURE_VISUALSTUDIOSETUP` condition (removed
MachineIndependentBuild check)
- **MSBuild.sln**: Removed 260 lines of MachineIndependent platform
configurations
### Testing
- Full build passes (Debug/Release configurations)
- Framework and Build.Engine unit tests pass
- Bootstrap environment and sample builds functional
### Notes
All conditional features previously disabled in MachineIndependent mode
now enabled unconditionally. No behavioral change for existing
Debug/Release configurations.
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>Consider removing the MachineIndependent
configuration</issue_title>
>
<issue_description>https://github.com/search?q=repo%3Adotnet%2Fmsbuild%20MachineIndependentBuild&type=code
>
> From what I know, this configuration is used to create a portable /
xcopy msbuild environment. Now that Mono is EOL and VS changing to a
rapid release cadence, I don't see much value in keeping this support
and the ifdefs that come with, alive.
>
> @rainersigwald opinions?</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes #13060
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/dotnet/msbuild/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.1 parent 7744bc9 commit c1d5007
3 files changed
Lines changed: 13 additions & 282 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 72 | | |
82 | 73 | | |
83 | 74 | | |
| |||
0 commit comments