KEMBAR78
Remove unsetting of NetCoreTargetingPackRoot to allow package pruning by MattKotsenas · Pull Request #70 · dotnet/reproducible-builds · GitHub
Skip to content

Conversation

@MattKotsenas
Copy link
Member

Contributes to #61

Package pruning in .NET 10 requires NetCoreTargetingPackRoot to be set. Previously, we unset that property to isolate the build environment from machine configuration.

To resolve the issue, we're removing our unsetting of this property so that package pruning can work as expected. The more officially supported way to instead enforce a consistent SDK version is via global.json. However, enforcing that is a bigger change that may break some workflows.

As a result, we're going to ship this change in two pieces: this piece, which is non-breaking and unblocks .NET 10 SDK adoption. The global.json enforcement will come later in #69.

@MattKotsenas MattKotsenas requested a review from a team as a code owner September 29, 2025 18:22
@MattKotsenas MattKotsenas merged commit f482547 into dotnet:main Sep 29, 2025
3 checks passed
@MattKotsenas MattKotsenas deleted the bugfix/61-pruning branch September 29, 2025 18:31
This was referenced Sep 29, 2025
This was referenced Oct 10, 2025
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.

2 participants