Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add support for central package management to Visual Studio Package Manager UI for legacy projects #9521

Open
cristinamanum opened this issue May 4, 2020 · 3 comments
Assignees
Labels
Area:RestoreCPM Central package management Functionality:Restore Priority:2 Issues for the current backlog. Type:Feature

Comments

@cristinamanum
Copy link
Contributor

Details about Problem

Implement the back-end changes to support Visual Studio update scenarios for non-sdk projects.

@cristinamanum cristinamanum added the Area:RestoreCPM Central package management label May 4, 2020
@nkolev92 nkolev92 added Priority:2 Issues for the current backlog. Type:Feature labels Jul 16, 2020
@jeffkl jeffkl self-assigned this May 2, 2022
@jeffkl jeffkl changed the title [CPVM] Visual Studio update scenarios - implement back-end changes for non-sdk projects [Feature]: Add support for central package management to Visual Studio Package Manager UI for legacy projects Aug 18, 2022
@jeffkl jeffkl assigned martinrrm and unassigned jeffkl Aug 18, 2022
@cremor
Copy link

cremor commented Jun 16, 2023

Is this not yet implemented? For legacy projects the VS Package Manager UI adds <Version> tags to the .csproj file instead of updating the Directory.Packages.props file.

(I know that this issue is still open. But I'm asking because the related issue #9018 is also still open, but works in VS.)

@Ozzian
Copy link

Ozzian commented Apr 2, 2024

When you have mixed projects in your solution, this now breaks the CPM: the Directory.Packages.props is updated AND the legacy projects are polluted with the <Version> tags.

@exaiwitmx
Copy link

For legacy projects the VS Package Manager UI adds <Version> tags to the .csproj file instead of updating the Directory.Packages.props file.

I also experience the same behavior (in a solution which contains legacy projects (non-SDK-style) only).

Reading the documentation, one might come to the conclusion that all this should already work:

The feature is available across all NuGet integrated tooling, starting with the following versions.

[Visual Studio 2022 17.2](https://visualstudio.microsoft.com/downloads/)
[.NET SDK 6.0.300](https://dotnet.microsoft.com/download/dotnet/6.0)
[nuget.exe 6.2.0](https://www.nuget.org/downloads)

Older tooling will ignore central package management configurations and features. To use this feature to the fullest extent, ensure all your build environments use the latest compatible tooling versions.

Central package management applies to all -based MSBuild projects (including legacy CSPROJ) as long as compatible tooling is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:RestoreCPM Central package management Functionality:Restore Priority:2 Issues for the current backlog. Type:Feature
Projects
None yet
Development

No branches or pull requests

8 participants