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:
- Fallback to the nearest framework for pruning data.
- Use a specific framework for pruning data.