Migrate to Centralized NuGet Package Management (CPM)#1489
Conversation
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
|
@copilot add the created Also, the docker build fails. Perhaps it's using an old SDK or otherwise doesn't support CPM? |
There was a problem hiding this comment.
Pull request overview
This PR migrates the repository from per-project NuGet package version management to Microsoft's Centralized Package Management (CPM) pattern, consolidating all 34 package versions into a single Directory.Packages.props file at the repository root.
Changes:
- Created
Directory.Packages.propswith centralized version management for 34 packages - Removed
Versionattributes from all<PackageReference>elements across 4 .csproj files - Preserved all other package reference attributes (PrivateAssets, Condition, etc.)
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Directory.Packages.props | New file enabling CPM with 34 alphabetically sorted PackageVersion entries |
| DiscordChatExporter.Gui/DiscordChatExporter.Gui.csproj | Removed Version attributes from 15 package references while preserving PrivateAssets and Condition attributes |
| DiscordChatExporter.Core/DiscordChatExporter.Core.csproj | Removed Version attributes from 10 package references while preserving PrivateAssets attributes |
| DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj | Removed Version attributes from 5 package references while preserving PrivateAssets attributes |
| DiscordChatExporter.Cli.Tests/DiscordChatExporter.Cli.Tests.csproj | Removed Version attributes from 12 package references while preserving PrivateAssets attributes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Done in afab439:
|
|
@copilot formatting fails |
…butes Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Fixed in 812192a. Removing the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Directory.Packages.propswith all 34 package versions centrally managed (alphabetically sorted).csprojfiles to removeVersion="..."attributes from<PackageReference>elementsDirectory.Packages.propsto the Misc solution folder inDiscordChatExporter.slnCOPY Directory.Packages.propsso the Docker build can restore packages via CPM<PackageReference>elements that became single-attribute afterVersionremovalOriginal prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.