Skip to content

Use central package management for source projects - #2218

Open
lbussell wants to merge 5 commits into
dotnet:mainfrom
lbussell:lbussell/centralize-microsoft-extensions-version
Open

Use central package management for source projects#2218
lbussell wants to merge 5 commits into
dotnet:mainfrom
lbussell:lbussell/centralize-microsoft-extensions-version

Conversation

@lbussell

@lbussell lbussell commented Aug 28, 2026

Copy link
Copy Markdown
Member

Package versions under src were declared independently in each project, which made shared dependency updates easy to miss.

This PR enables NuGet central package management for all source projects through src/Directory.Packages.props.

  • Centralizes every direct package version under src
  • Updates the shared Microsoft.Extensions and System package versions from 10.0.10 to 10.0.11
  • Keeps packages on independent release tracks at their existing versions
  • Adds package source mappings for the public and engineering feeds
  • Copies the central package file into the Linux and Windows ImageBuilder container restore layers

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 5fd9a57c-ac97-4fea-b51f-1e7b294f29df
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 5fd9a57c-ac97-4fea-b51f-1e7b294f29df
@lbussell
lbussell requested a review from a team as a code owner August 28, 2026 21:06
@lbussell lbussell changed the title Centralize ImageBuilder platform package versions Centralize ImageBuilder platform package versions and update to 10.0.11 Aug 28, 2026

@mthalman mthalman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wouldn't CPM be the more appropriate solution for this?

@lbussell

Copy link
Copy Markdown
Member Author

Wouldn't CPM be the more appropriate solution for this?

  1. Central package version management was historically blocked by Add a buildContext option to Platform in Manifest #1592. Since we wanted to have a Directory.Packages.props at the root of the repo, the Dockerfile in src/ couldn't resolve it. We could probably revisit it though, since all C# files and projects were recently rearranged to be under the src/ directory.
  2. This orthogonal to CPM. We would still have this property even if we adopted CPM. I'm trying to force all the Microsoft.Extensions.* and System.* packages to version together.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 5fd9a57c-ac97-4fea-b51f-1e7b294f29df
@lbussell lbussell changed the title Centralize ImageBuilder platform package versions and update to 10.0.11 Use central package management for source projects Aug 28, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 5fd9a57c-ac97-4fea-b51f-1e7b294f29df
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 5fd9a57c-ac97-4fea-b51f-1e7b294f29df
@lbussell
lbussell requested a review from mthalman August 28, 2026 21:45
@lbussell

Copy link
Copy Markdown
Member Author

Added CPM.

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