Skip to content

Use V3 version of the assets file when a SDK project restore is missing a TargetFramework - #7127

Merged
nkolev92 merged 1 commit into
devfrom
dev-nkolev92-tfmlessSDKRestore
Feb 11, 2026
Merged

nkolev92 merged 1 commit into
devfrom
dev-nkolev92-tfmlessSDKRestore

Conversation

@nkolev92

@nkolev92 nkolev92 commented Feb 11, 2026 •

Copy link
Copy Markdown
Member

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

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@nkolev92
nkolev92 requested review from jeffkl and zivkan February 11, 2026 20:15
@nkolev92
nkolev92 requested a review from a team as a code owner February 11, 2026 20:15
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.

Latest dev NuGet.Client is breaking the VMR builds

4 participants