Repository navigation
Use V3 version of the assets file when a SDK project restore is missing a TargetFramework - #7127
Merged
Merged
Conversation
jeffkl
approved these changes
Feb 11, 2026
zivkan
approved these changes
Feb 11, 2026
martinrrm
approved these changes
Feb 11, 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.
Bug
Fixes: NuGet/Home#14755
Description
In arcade, when the traversal SDK is used, sometimes they unset the TargetFramework.
Unfortunately that leads to a failure down the line because....rightfully so, NuGet requires a TargetFramework for SDK projects.
Unfortunately we never quite codified that until now, and it breaking VMR builds in https://dev.azure.com/dnceng/internal/_build/results?buildId=2900375&view=results. cc @MichaelSimons
We want to unblock the VMR first, but we'll continue the conversation around the unsetting of the TargetFramework.
dotnet/dotnet#4768 has the tests I did.
Context from the issue:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2900375&view=results
The root cause is that there is an Microsoft.Build.Travelsal project that the arcade SDK unsets the TargetFramework for.
https://github.com/dotnet/dotnet/blob/bfb70557c99bd674a30bd3ab81197ff44ea3c0bf/build.proj#L1
https://github.com/dotnet/dotnet/blob/bfb70557c99bd674a30bd3ab81197ff44ea3c0bf/src/arcade/src/Microsoft.DotNet.Arcade.Sdk/tools/TargetFrameworkFilters.BeforeCommonTargets.targets#L18-L19
Basically it unsets framework aliases on linux, and for Traversal that has a default tfm of net45, that leaves it with nothing.
PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.