Skip to content

Better support for building against newer frameworks than SDK supports #51974

@ericstj

Description

@ericstj

At the end of every release we need to bootstrap a new TFM. This involves using the N-1 SDK to build the latest framework before we can have an SDK that natively supports that framework.

When doing so for 10->11 we hit the error:

C:\src\dotnet\runtime\.dotnet\sdk\10.0.100-rc.2.25502.107\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(66,5): error NETSDK1226: Prune Package data not found .NETCoreApp 11.0 Microsoft.NETCore.App.  To ignore this error, set the AllowMissingPrunePackageData to true.

We can hack around this, but it would be better if there was a knob that let us say either:

  1. Fallback to the nearest framework for pruning data.
  2. Use a specific framework for pruning data.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions