Add net8.0 and net9.0 TFMs to CLI tool package for servicing branch compatibility#1572
Merged
kotlarmilos merged 1 commit intodotnet:mainfrom Mar 18, 2026
Merged
Conversation
This was referenced Mar 17, 2026
8247b8c to
26df198
Compare
…ch compatibility Define XHarnessNetTFMs centrally in Directory.Build.props so all shipped packages include net8.0 through net11.0. This ensures downstream repos on older .NET SDKs (e.g. dotnet/runtime release/8.0-staging, release/10.0) can consume XHarness packages from main. The Arcade SDK 11.0 defines NetMinimum=net10.0 and NetPrevious='' (empty), so projects using only Arcade variables end up with just net10.0 and net11.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26df198 to
cb2f998
Compare
missymessa
approved these changes
Mar 17, 2026
akoeplinger
approved these changes
Mar 17, 2026
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.
Problem
The Arcade SDK 11.0 defines
NetMinimum=net10.0andNetPrevious=''(empty), so:The CLI tool NuGet package only contains
tools/net10.0/andtools/net11.0/TFM folders. When downstream repos on .NET 8 or .NET 9 SDKs try to install the tool viadotnet tool install, it fails with:The library NuGet packages (
Microsoft.DotNet.XHarness.Common,TestRunners.*) only targetnet10.0, causing NuGet restore errors in downstream repos targeting net8.0/net9.0:Affected downstream PRs:
Root Cause
Arcade SDK
TargetFrameworkDefaults.propsdefines:NetCurrent = net11.0NetPrevious =(empty)NetMinimum = net10.0Projects using these variables end up with only
net11.0;net10.0.Fix
Add explicit
net8.0(andnet9.0for CLI/AndroidEntryPoint) to TargetFrameworks for all shipped packages. TheRollForward=Majorin runtimeconfig.json ensures the net8.0 asset can run on any higher .NET runtime.Affected Packages