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

[Epic]: Central Package Management Improvements for 17.3 #11752

Closed
7 tasks done
jeffkl opened this issue Apr 15, 2022 · 15 comments
Closed
7 tasks done

[Epic]: Central Package Management Improvements for 17.3 #11752

jeffkl opened this issue Apr 15, 2022 · 15 comments
Assignees
Labels
Area:RestoreCPM Central package management Epic Priority:2 Issues for the current backlog. Type:Tracking This issue is tracking the completion of other related issues.

Comments

@jeffkl
Copy link
Contributor

jeffkl commented Apr 15, 2022

These items need to be addressed to make central package management production ready.

Issues

Features

Performance

Take performance measurements for large repositories to ensure that there is no regression in restore times. Also look for any optimizations that can be made.

  • Measure performance on a large repository

Visual Studio support

In parallel, we're working with the Project System team to support updating Directory.Packages.props instead of individual projects so the experience in the UI is correct.

Pull Requests

@jeffkl jeffkl added Epic Area:RestoreCPM Central package management labels Apr 15, 2022
@jeffkl jeffkl self-assigned this Apr 15, 2022
@jeffkl jeffkl added the Type:Tracking This issue is tracking the completion of other related issues. label Apr 15, 2022
@nkolev92 nkolev92 added Priority:2 Issues for the current backlog. Pipeline:Backlog labels Apr 18, 2022
@AArnott
Copy link
Contributor

AArnott commented May 9, 2022

Please seriously consider #9464 as part of this initial stable release. At the very least, before deferring it make sure that implementing it later won't require any breaking change that would block its delivery later. It's a very important scenario for us.

@jeffkl
Copy link
Contributor Author

jeffkl commented May 9, 2022

@AArnott I'm pretty sure #10389 covers this scenario. When you opt into it, any <PackageVersion /> defined will override a transitive dependency version without need to specify a top-level <PackageReference />. Do I understand #9464 correctly? Does that sound right to you?

@AArnott
Copy link
Contributor

AArnott commented May 12, 2022

No, that's not the same. #10389 is pinning of transitive dependencies, whereas #9464 is about not specifying package versions at all when it can be inferred via the transitive dependencies of another package whose version is specified.

@Nirmal4G
Copy link

@jeffkl I also propose the central package management be activated when the Directory.Packages.props or _DirectoryPackagesPropsFile is found and can be imported. Enabling via property manually is just another redundant churn. We can op-out by setting the property but opt-in should be default by the recognition of the presence of packages file.

@jeffkl
Copy link
Contributor Author

jeffkl commented Jun 21, 2022

@Nirmal4G I agree, that's something I'm planning on doing for the next release (Visual Studio 2022 17.4)

@jeffkl jeffkl changed the title [Epic]: Additional central package management features for the next release [Epic]: Central Package Management Improvements for 17.3 Jul 7, 2022
@edumserrano
Copy link

edumserrano commented Jul 14, 2022

This might be the wrong place to add this info but docker support on Visual Studio 17.3 Preview 3 is broken when using Central Package Management.

When I try to run in Visual Studio the dockerfile I keep getting a prompt to install a package which is already installed. Even if I reply yes to the prompt, I just get an error message on visual studio that just says Error without further information.
image

If I disable CPM, everything works as expected again.

@jeffkl
Copy link
Contributor Author

jeffkl commented Jul 14, 2022

@edumserrano please file a new issue for tracking and include exact steps I can follow to reproduce the problem which will greatly help with the investigation. Thanks for reporting this.

@edumserrano
Copy link

@jeffkl I've create this issue and a repo with further information to help debug this bug #11972.

Hopefully it's a simple one.

@andrew-hampton
Copy link

@jeffkl is there an issue or something tracking the VS UI improvements so that I can follow the status of that work as well? Thanks

@jeffkl
Copy link
Contributor Author

jeffkl commented Jul 29, 2022

@andrew-hampton yes, it is here: #9015

@JonDouglas
Copy link
Contributor

@jeffkl Can we close as completed?

@jeffkl
Copy link
Contributor Author

jeffkl commented Aug 29, 2022

@jeffkl Can we close as completed?

Yes good idea!

@jeffkl jeffkl closed this as completed Aug 29, 2022
@menees
Copy link

menees commented Aug 30, 2022

@jeffkl and @JonDouglas, why was this epic closed? I'm running VS 17.3.2, and I still get NuGet preview messages in VS and MSBuild on restores: The project ... is using CentralPackageVersionManagement, a NuGet preview feature.

Issue #11724 was closed by @nkolev92 on Apr 18, but it doesn't appear that the preview message was ever taken out. It's certainly still present in VS 17.3.2 and MSBuild 17.3.1+2badb37d1. So, this epic shouldn't be closed, or its title and milestones should be updated, or #11724 should be reopened, or something.

To a non-Microsoftie, it's extremely difficult to understand why it seems so difficult to get this CPM preview message turned off in VS. :-(

@JonDouglas
Copy link
Contributor

@menees See #11952

This epic is complete as it is already out. We will continue to iterate with the next one.

@jeffkl
Copy link
Contributor Author

jeffkl commented Aug 30, 2022

@menees some of the features were pushed to the next release, including the removal of the preview message. As Jon mentioned, the next iteration of work is being tracked in #11952

To a non-Microsoftie, it's extremely difficult to understand why it seems so difficult to get this CPM preview message turned off in VS. :-(

I'm sorry for your frustration, I agree that the message should have had a setting to suppress it. I'll be sure to incorporate this feedback with future messages since they can't be suppressed out-of-the-box like warnings can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:RestoreCPM Central package management Epic Priority:2 Issues for the current backlog. Type:Tracking This issue is tracking the completion of other related issues.
Projects
None yet
Development

No branches or pull requests

8 participants