With the April release of C# Dev Kit, you can now manage your NuGet packages directly from Visual Studio Code using the new commands in the command palette.
To add a NuGet package to your project, use the command “NuGet: Add NuGet Package”. If you have more than one project in your solution, you will be asked to select which project you want to add the package to. Then you can search for packages by name. Then select the version you want to apply. Once you select a package, C# Dev Kit will add it to your project and update your project file and references. To update or remove a NuGet package from your project, use the commands “NuGet: Update NuGet Package” and “NuGet: Remove NuGet Package.” These commands will show you a list of the packages that are currently installed in your project and let you choose which ones you want to update or remove. C# Dev Kit will then perform the necessary changes and update your project file and references.
Here is an example of how to use the commands to add, update, and remove NuGet packages in Visual Studio Code:
We would love to hear your feedback and suggestions for more features and functionality to be added to our C# Dev Kit NuGet experience. Please Report an issue through VS Code, open an issue on GitHub, or leave a comment below!
While already something versus manually editing the project file, it would be better to have a graphical way similar to VS proper, or JetBrains Rider.
Very, very inconvenient package management(
Yea, the package manager is too commandline centric. I use a VS code extension for Nugget – very nice with a good UI
The embedded video shows nothing in the Edge browser. Works fine in Chrome.
It works well on Microsoft Edge browser – that’s what I use.
It also fails on Firefox.