PackageUpdate 4.6.0

dotnet tool install --global PackageUpdate --version 4.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local PackageUpdate --version 4.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PackageUpdate&version=4.6.0
                    
nuke :add-package PackageUpdate --version 4.6.0
                    

PackageUpdate

A dotnet tool that updates NuGet packages for all solutions in a directory.

Only solutions using Central Package Management (CPM) are supported.

See the full documentation for more details.

Installation

dotnet tool install -g PackageUpdate

Usage

packageupdate C:\Code\TargetDirectory

If no directory is passed the current directory will be used.

Arguments

  • Target Directory: packageupdate -t C:\Code\TargetDirectory
  • Specific Package: packageupdate --package PackageName
  • Build After Update: packageupdate --build

Features

  • Updates all packages across all solutions in a directory
  • Respects Pinned="true" attribute to skip specific packages
  • Updates VersionOverride entries in projects independently of the central version
  • Updates local dotnet tools in dotnet-tools.json manifests
  • Automatically migrates deprecated packages to recommended alternatives
  • Preserves file formatting (newlines, indentation)
  • Queries all configured NuGet sources
  • Supports authenticated feeds

Package Version Pinning

Add Pinned="true" to prevent a package from being updated:

<PackageVersion Include="System.ValueTuple" Version="4.5.0" Pinned="true" />

Add "pinned": true to prevent a dotnet tool from being updated:

"dotnet-ef": {
  "version": "8.0.0",
  "commands": [
    "dotnet-ef"
  ],
  "pinned": true
}

Exclude Solutions

Set the PackageUpdateIgnores environment variable to skip specific directories:

setx PackageUpdateIgnores "AspNetCore,EntityFrameworkCore"
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
4.6.0 90 10/15/2026
4.5.2 115 9/12/2026
4.5.1 156 8/17/2026
4.5.0 132 8/3/2026
4.4.0 126 7/21/2026
4.3.0 132 7/18/2026
4.2.0 170 4/11/2026
4.1.7 144 4/9/2026
4.1.6 135 4/9/2026
4.1.5 148 3/23/2026
4.1.4 158 2/17/2026
4.1.3 137 2/17/2026
4.1.2 150 2/2/2026
4.1.1 145 2/2/2026
4.1.0 142 2/2/2026
4.0.5 342 12/19/2025
4.0.4 310 12/18/2025
4.0.3 314 12/18/2025
4.0.2 321 12/18/2025
4.0.1 245 12/5/2025
Loading failed