NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.52k stars 643 forks source link

[Feature]: Add tab to command palette for Central Package Management XML #9944

Open thompson-tomo opened 1 month ago

thompson-tomo commented 1 month ago

Related Problem

I use central package management and global package references and am wanting to make it nice and easy for me to determine what information i need to add to my files

The Elevator Pitch

When looking at package it should be quicker and easier for a developer to know what the xml element which needs to be added to install package as a global package reference. At the same time it should also be as easy to know how to add it when using central package management.

Additional Context and Details

No response

joelverhagen commented 1 month ago

I want to make sure I understand what you mean. Today we have this for direct package dependency: image

Are you asking for another tab for central package management XML? Such as:

<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
thompson-tomo commented 1 month ago

Correct & I would suggest to also include the required info for the csproj in the same tab to make it as seamless as possible for developers.

joelverhagen commented 1 month ago

Thanks for the confirmation.

Could you give an example of which required info you'd really like to see? If we put too much information in there, it might push the content down the page too far or be hard to understand. Would this additional information be copyable or just for reference? Perhaps a link to documentation could be an alternative?

thompson-tomo commented 1 month ago

@joelverhagen sure what i would like is as follows.

Body Contents

Directory.Packages.props file

<PackageVersion Include="WeMicroIt.Extensions.Configuration.JavaProperties" Version="1.0.0-preview-06" />

Project reference

<PackageReference Include="WeMicroIt.Extensions.Configuration.JavaProperties" />

While this ui tweak is being made i would suggest the cake tab is layed out the same way which also has 2 command options which are currently grouped together as one making not that easy to execute.

JonDouglas commented 1 month ago

This a fabulous idea! @jeffkl FYI for awareness