Repository navigation
Update TFM to net11.0 and update accompanying files - #14455
Merged
Merged
Conversation
Contributor
🔍 Skill Validator Results✅ All checks passed
Summary
Full validator output```text Found 1 skill(s) [running-unit-tests] 📊 running-unit-tests: 2,379 BPE tokens [chars/4: 2,319] (detailed ✓), 10 sections, 6 code blocks ✅ All checks passed (1 skill(s)) ``` |
The stage1 and stage2 CI builds both default their binary log to Build.binlog, so publishing them to the same artifacts location collides. Declare ci/binaryLog/excludeCIBinarylog as first-class parameters, forward them to both stage builds, and pass -binaryLogName Build.stage2.binlog to stage2 when a binlog will actually be produced. Co-authored-by: Copilot <[email protected]> Copilot-Session: 2a6b38b1-0da7-488f-9938-3ac1051e15e2
Moving the stage 1 artifacts aside relocated its Build.binlog out of the published artifacts/log directory, so CI only published the stage 2 binlog. Copy the stage 1 binlog back as Build.stage1.binlog right after the move (best-effort; skipped when no binlog was produced). Co-authored-by: Copilot <[email protected]> Copilot-Session: 2a6b38b1-0da7-488f-9938-3ac1051e15e2
Instead of copying just the stage 1 binlog, copy the whole stage 1 log directory back into artifacts/log after the move, so CI publishes all stage 1 logs alongside the stage 2 ones. Runs before the stage 2 build, so it won't clobber stage 2 output. Co-authored-by: Copilot <[email protected]> Copilot-Session: 2a6b38b1-0da7-488f-9938-3ac1051e15e2
…uGet tooling BootstrapNetCore copied the older NuGet.Build.Tasks package family (a toolset dependency, e.g. 7.10.0-rc.26) over the acquired SDK's root, while the SDK's pack tooling under Sdks\Microsoft.NET.Sdk\tools kept its bundled version (rc.36111). This tore restore (package version) from pack (SDK version). The AcquireSdk-downloaded SDK already ships a complete, internally-aligned NuGet stack (restore + pack + resolver). Per the design intent in Version.Details.xml (bind to the host SDK's NuGet at runtime), stop overlaying the package versions and also exclude our NuGet.Build.Tasks.Console.* from the freshly-built binaries so the SDK's aligned tooling wins. Verified: full build succeeds with 0 warnings, all NuGet.Build.Tasks*.dll now report rc.36111, and restore+pack via the bootstrap dotnet succeed. Co-authored-by: Copilot <[email protected]> Copilot-Session: 2a6b38b1-0da7-488f-9938-3ac1051e15e2
Contributor
There was a problem hiding this comment.
Pull request overview
Updates MSBuild’s primary .NETCoreApp target framework to net11.0 and aligns related test assets, documentation, tooling scripts, and CI/CTS infrastructure to match the new baseline.
Changes:
- Bump
LatestDotNetCoreForMSBuildto net11.0 and update hardcoded TFMs across tests, benchmarks, scripts, docs, and test assets. - Update bootstrap/build scripts and CTS/VSTest wrappers to keep stage1/stage2 logging and test execution aligned with the new runtime.
- Add/adjust package-validation suppression baselines and various documentation references tied to the .NETCoreApp TFM.
Show a summary per file
| File | Description |
|---|---|
| template_feed/Microsoft.Build.Templates.csproj | Template pack metadata/TFM adjustments |
| template_feed/content/Microsoft.CheckTemplate/Directory.Packages.props | Template formatting cleanup |
| template_feed/content/Microsoft.CheckTemplate/Company.CheckTemplate.props | Template formatting cleanup |
| template_feed/content/Microsoft.CheckTemplate/Company.CheckTemplate.csproj | Template formatting cleanup |
| template_feed/content/Microsoft.CheckTemplate/Check1.cs | Template whitespace cleanup |
| src/Utilities/README.md | Update runtime TFM mention |
| src/Utilities/CompatibilitySuppressions.xml | Add/update package-validation suppressions |
| src/Utilities.UnitTests/Microsoft.Build.Utilities.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/UnitTests.Shared/RunnerUtilities.cs | Update comments re: bootstrap runtime |
| src/Tasks/CompatibilitySuppressions.xml | Add/update package-validation suppressions |
| src/Tasks.UnitTests/Microsoft.Build.Tasks.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/Tasks.UnitTests/AssemblyDependency/AssemblyFolderCollection_Tests.cs | Update test comments re: TFMs |
| src/TaskAnalyzer.Tests/TaskAnalyzer.Tests.csproj | Target latest .NETCoreApp property |
| src/StringTools.UnitTests/StringTools.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/MSBuild.UnitTests/Microsoft.Build.CommandLine.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/MSBuild.EndToEnd.Tests/TestAssets/SingleProject/SingleProject.csproj | Update test asset TFM to net11.0 |
| src/MSBuild.EndToEnd.Tests/TestAssets/ProjectWithDependencies/Library4/Library4.csproj | Update test asset TFM to net11.0 |
| src/MSBuild.EndToEnd.Tests/TestAssets/ProjectWithDependencies/Library3/Library3.csproj | Update test asset TFM to net11.0 |
| src/MSBuild.EndToEnd.Tests/TestAssets/ProjectWithDependencies/Library2/Library2.csproj | Update test asset TFM to net11.0 |
| src/MSBuild.EndToEnd.Tests/TestAssets/ProjectWithDependencies/Library1/Library1.csproj | Update test asset TFM to net11.0 |
| src/MSBuild.EndToEnd.Tests/TestAssets/ProjectWithDependencies/ConsoleApp/ConsoleApp.csproj | Update test asset TFM to net11.0 |
| src/MSBuild.Coordinator.UnitTests/CoordinatorIntegration_Tests.cs | Update in-test project TFM to net11.0 |
| src/MSBuild.Bootstrap/MSBuild.Bootstrap.csproj | Simplify deps-file target condition |
| src/MSBuild.Benchmarks/readme.md | Update benchmark commands to net11.0 |
| src/MSBuild.Benchmarks/PartialEvaluationBenchmark.cs | Update benchmark comment wording |
| src/MSBuild.Benchmarks/ExpanderBenchmark.cs | Update benchmark paths/TFM strings |
| src/Framework/README.md | Update runtime TFM mention |
| src/Framework/Polyfills/AotTrimmingPolyfills.cs | Update comments re: runtime-provided types |
| src/Framework/CompatibilitySuppressions.xml | Add/update package-validation suppressions |
| src/Framework.UnitTests/Microsoft.Build.Framework.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/Directory.BeforeCommon.targets | Remove legacy netcoreapp2.1 condition |
| src/BuildCheck.UnitTests/Microsoft.Build.BuildCheck.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/Build/CompatibilitySuppressions.xml | Add PKV006 suppression (TFM baseline) |
| src/Build.UnitTests/Snapshots/TerminalLogger_Tests.ProjectFinishedReportsTargetFrameworkAndRuntimeIdentifier.Windows.verified.txt | Update snapshot TFM to net11.0 |
| src/Build.UnitTests/Snapshots/TerminalLogger_Tests.ProjectFinishedReportsTargetFrameworkAndRuntimeIdentifier.OSX.verified.txt | Update snapshot TFM to net11.0 |
| src/Build.UnitTests/Snapshots/TerminalLogger_Tests.ProjectFinishedReportsTargetFrameworkAndRuntimeIdentifier.Linux.verified.txt | Update snapshot TFM to net11.0 |
| src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs | Update comments re: TFM derivation |
| src/Build.UnitTests/Microsoft.Build.Engine.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/Build.UnitTests/Graph/ProjectGraph_Tests.cs | Update graph tests for net11.0 |
| src/Build.OM.UnitTests/Microsoft.Build.Engine.OM.UnitTests.VSTest.csproj | Pin VSTest wrapper to latest .NETCoreApp |
| src/aot-validation/README.md | Update AOT harness paths to net11.0 |
| src/aot-validation/ObjectModelAotTests.cs | Update in-test TFM strings to net11.0 |
| src/aot-validation/Microsoft.Build.AotValidation.csproj | Update AOT harness TFM to net11.0 |
| scripts/Deploy-MSBuild.ps1 | Update deployment script TFM to net11.0 |
| scripts/cts/README.md | Update CTS docs to latest .NETCoreApp wording |
| scripts/cts/METRICS.md | Update CTS docs to latest .NETCoreApp wording |
| scripts/cts/cts.config.json | Update CTS artifact glob to net11.0 |
| scripts/cts/_Common.ps1 | Update CTS build/output paths to net11.0 |
| plugins/mt-migration/skills/multithreaded-task-migration/SKILL.md | Update guidance wording re: TFMs |
| MSBuild.VSTest.slnx | Update CTS/VSTest slnx documentation |
| global.json | Update pinned SDK to .NET 11 preview |
| eng/build.sh | Forward binlog switches + preserve stage1 logs |
| eng/build.ps1 | Forward binlog switches + preserve stage1 logs |
| eng/BootStrapMsBuild.targets | Bootstrap copy overlay adjustments + comments |
| documentation/specs/sdk-resolver-host-registration-api.md | Update spec wording re: TFMs |
| documentation/aot/task-factory-aot.md | Update AOT doc wording re: TFMs |
| documentation/aot/sdk-resolution.md | Update AOT doc wording re: TFMs |
| documentation/aot/aot-trimming-strategy.md | Update AOT doc wording re: TFMs |
| Directory.Build.targets | Remove ApiCompatAdditionalSearchPaths workaround |
| Directory.Build.props | Bump LatestDotNetCoreForMSBuild to net11.0 |
| azure-pipelines/cts-steps/collect-steps.yml | Adjust runtime install approach for CTS |
| azure-pipelines/cts-steps/apply-steps.yml | Adjust runtime install approach for CTS |
| .github/skills/running-unit-tests/SKILL.md | Update unit test guidance to net11.0 |
Copilot's findings
- Files reviewed: 63/63 changed files
- Comments generated: 10
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI
added a commit
that referenced
this pull request
Jul 20, 2026
Co-authored-by: ViktorHofer <[email protected]>
AlesProkop
approved these changes
Jul 21, 2026
alastairlundy
added a commit
to alastairlundy/ReleaseGen
that referenced
this pull request
Nov 9, 2026
Microsoft.Build ships only one modern .NET TFM, driven by LatestDotNetCoreForMSBuild in dotnet/msbuild. That value moved from net10.0 to net11.0 in dotnet/msbuild#14455, so packages from 18.10.1 onward ship only net11.0 and net472 assets; 18.9.6 is the newest published net10.0 build. A net10.0 project restoring a newer version does not fail outright: AssetTargetFallback selects the net472 assets and restore reports NU1701, so the compile-time reference assemblies no longer match the net10.0 assemblies Microsoft.Build.Locator loads from the installed SDK. Record the pin next to the version in Directory.Packages.props and spell out the rule in CONTRIBUTING.md: do not bump Microsoft.Build while ReleaseGen targets net10.0. AI-assisted: authored with MiMo-V2.6-Flash (opencode-go); the dotnet/msbuild research and both edits were generated by the model and verified by building the solution. 🤖 Generated with [OpenCode](https://opencode.ai) (MiMo-V2.6-Flash)
10 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #14243