Skip to content

Conversation

@nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Sep 2, 2025

Bug

Fixes: NuGet/Home#14511

Description

_RestorePackagePruningDefault is not cached by CPS and leads to extra design time builds when the project is loaded from the cache.

The _ here just clarifies that customers shouldn't use this property, but there's really no true benefit to it, since it's convention anyways, it's not like MSBuild enforces it.

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.

Copy link
Member

@zivkan zivkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the PR description could be a bit more clear in explicitly saying it's Visual Studio's CPS doing the caching, especially for people who don't know what "DTB" means. Otherwise, I'm happy that this is fixed, after I spent far too many hours last week trying to investigate such bizarre behavior.

@nkolev92
Copy link
Member Author

nkolev92 commented Sep 2, 2025

Thanks for the suggestion.
Improved the description.

@nkolev92 nkolev92 merged commit 546b0dc into dev Sep 2, 2025
17 of 18 checks passed
@nkolev92 nkolev92 deleted the dev-nkolev92-rename branch September 2, 2025 23:19
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.

Change _RestorePackagePruningDefault to RestorePackagePruningDefault

5 participants