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.
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.
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
The extension activates automatically when your workspace contains at least one .csproj file.
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.
If the latest version is higher than the one declared in the project, an Information diagnostic is shown on the version value.
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!