Skip to content

Conversation

florelis
Copy link
Member

@florelis florelis commented May 1, 2025

This pull request introduces the NuGet Central Package Management feature to streamline dependency management. Key benefits and changes include:

  • Centralized Version Management: All NuGet package versions are now managed centrally in the Directory.Packages.props file. This ensures consistency across all projects in the repository.

  • Simplified Project Files: The individual project files are simplified, as they no longer need to specify version numbers for NuGet packages. This change reduces duplication and the potential for version conflicts.

  • Ease of Updating Dependencies: Updating a package version is now a matter of changing it in one place, making the process of keeping dependencies up-to-date more straightforward and less error-prone.

(Description copied from the automated PR to the internal repo :D )

Microsoft Reviewers: Open in CodeFlow

@florelis florelis requested a review from a team as a code owner May 1, 2025 00:49
Copy link
Member Author

Choose a reason for hiding this comment

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

It took me a while to catch this, but this file is independent of Directory.Build.props

<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
<PackageVersion Include="System.Security.Principal.Windows" Version="5.0.0" />
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageVersion Include="xunit" Version="2.4.2" />
Copy link
Member Author

Choose a reason for hiding this comment

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

I just realized that we use both nunit and xunit in different projects, which seems a bit weird

@florelis florelis merged commit 1dfda8e into microsoft:master May 2, 2025
9 checks passed
@florelis florelis deleted the centralPackageManagement branch May 2, 2025 17:00
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