Skip to content

Revert "Enable central package management implicitly when Directory.Packages.props exists #5540" - #5876

Merged
jeffkl merged 2 commits into
devfrom
dev-jeffkl-revert-cpm-auto-enable
Jun 27, 2024
Merged

jeffkl merged 2 commits into
devfrom
dev-jeffkl-revert-cpm-auto-enable

Conversation

@jeffkl

@jeffkl jeffkl commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

Bug

Re-opens: NuGet/Home#11834

Regression? Last working version:

Description

This reverts the breaking change which enables CPM by default when Directory.Packages.props. We've since identified that it also contained an unintentional breaking change which we attempted to fix but it also affected users who have a repo that:

  1. Includes a submodule where the submodule does not use CPM
  2. Has a packages.config project and you had not enabled CPM, it would now be enabled.
  3. Has CPM disabled globally but enabled for particular projects.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@jeffkl jeffkl self-assigned this Jun 27, 2024
@jeffkl
jeffkl requested a review from a team as a code owner June 27, 2024 18:49
@jeffkl jeffkl changed the title Dev jeffkl revert cpm auto enable Revert "Enable central package management implicitly when Directory.Packages.props exists #5540" Jun 27, 2024
@jeffkl
jeffkl force-pushed the dev-jeffkl-revert-cpm-auto-enable branch from 9542eb3 to f70c165 Compare June 27, 2024 19:24
@jeffkl
jeffkl force-pushed the dev-jeffkl-revert-cpm-auto-enable branch from f70c165 to e3e1282 Compare June 27, 2024 19:37
@jeffkl
jeffkl enabled auto-merge (squash) June 27, 2024 21:56
@jeffkl
jeffkl merged commit 7d8b62f into dev Jun 27, 2024
@jeffkl
jeffkl deleted the dev-jeffkl-revert-cpm-auto-enable branch June 27, 2024 22:45
ViktorHofer added a commit to dotnet/sdk that referenced this pull request Jul 2, 2024
Needed because NuGet/NuGet.Client#5876 reverts implicitly setting `ManagePackageVersionsCentrally` to true.
@ViktorHofer

Copy link
Copy Markdown
Contributor

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.

3 participants