Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Package NuGet UpgradeNew to Visual Studio Code? Get it now.
Package NuGet Upgrade

Package NuGet Upgrade

Giacomo Corallini

|
2 installs
| (0) | Free
Update quickly dependencies available in *.csproj files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Package NuGet Upgrade

Package NuGet Upgrade is a Visual Studio Code extension that detects outdated NuGet packages directly inside your .csproj files, without running any CLI tool. It queries the NuGet public API in the background and highlights packages that have a newer stable version available.


Features

Inline diagnostics

Every <PackageReference> with an available update is underlined in the editor. Hover over it to see the current and latest version.

Diagnostic squiggle on an outdated package version

One-click update

Click the lightbulb (or press Ctrl+.) to apply a quick fix — the version is replaced in-place and the file is saved automatically.

Quick fix menu showing update and changelog options

Open changelog

A second quick-fix action opens the NuGet package page for the new version directly in your browser, so you can review the release notes before updating.

Scan all projects at once

Use the Command Palette command NuGet: Check All Package Updates (Ctrl+Shift+P) to scan every .csproj in your workspace in one go.


Requirements

  • Visual Studio Code 1.118.0 or later
  • An internet connection (the extension calls api.nuget.org)
  • No additional tooling (.NET SDK, NuGet CLI, etc.) required

How it works

  1. The extension activates automatically when your workspace contains at least one .csproj file.
  2. Every time you open or save a .csproj, each <PackageReference Include="..." Version="..."> is extracted and the latest stable version is fetched from https://api.nuget.org/v3-flatcontainer/{id}/index.json.
  3. If the latest version is higher than the one declared in the project, an Information diagnostic is shown on the version value.
  4. Version results are cached in memory for 10 minutes to keep network traffic minimal.

Extension Settings

This extension does not contribute any settings at the moment.


Known Limitations

  • Only Version attributes on <PackageReference> elements are checked. <PackageVersion> (Central Package Management) is not yet supported.
  • Version range expressions (e.g. [1.0,2.0)) and wildcard versions (e.g. 1.*) are skipped.
  • Private NuGet feeds are not supported — only api.nuget.org is queried.

Support

If you find this extension useful, buying me a coffee!

Donate

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft