lr-nuget-update.any 2026.3.23.1520

dotnet add package lr-nuget-update.any --version 2026.3.23.1520
                    
NuGet\Install-Package lr-nuget-update.any -Version 2026.3.23.1520
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="lr-nuget-update.any" Version="2026.3.23.1520" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="lr-nuget-update.any" Version="2026.3.23.1520" />
                    
Directory.Packages.props
<PackageReference Include="lr-nuget-update.any" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add lr-nuget-update.any --version 2026.3.23.1520
                    
#r "nuget: lr-nuget-update.any, 2026.3.23.1520"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package lr-nuget-update.any@2026.3.23.1520
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=lr-nuget-update.any&version=2026.3.23.1520
                    
Install as a Cake Addin
#tool nuget:?package=lr-nuget-update.any&version=2026.3.23.1520
                    
Install as a Cake Tool

lr-nuget-update

NuGet

A command-line tool to keep your NuGet packages up to date when using Central Package Management (Directory.Packages.props). It scans your solution, checks for newer versions, and updates your centralized configuration automatically.

Usage

Run it directly with dnx:

dnx -y lr-nuget-update [directory] [--allow-major]

Examples

Update packages in the current directory:

dnx -y lr-nuget-update

Allow major version updates:

dnx -y lr-nuget-update --allow-major

Update packages in a specific project or solution folder:

dnx -y lr-nuget-update ./src/MyProject

How it works

The tool follows a smart process to ensure your solution is updated safely and correctly:

  1. Solution Discovery It finds your .sln or .slnx file. If not found in the current directory, it searches up the folder tree (up to 10 levels) until it locates one.
  2. Project & Package Scanning It identifies all .csproj files within the solution and extracts all used NuGet packages.
  3. Version Checking It queries your configured NuGet sources (including private ones from your nuget.config) for the latest available versions.
  4. Safe Updates By default, it only updates to the latest version within the same major version. This prevents breaking changes while ensuring you get the latest bug fixes and minor improvements. To allow major version updates, use the --allow-major flag.
  5. Centralized Management
    • It writes updates directly to Directory.Packages.props.
    • If the file doesn't exist, it creates one and enables Central Package Management for you.
    • It ensures Directory.Packages.props is added to your "Solution Items" folder so it's easily accessible in your IDE.

Good to know

  • CPM Support: This tool is specifically designed for projects using Central Package Management.
  • Transitive Pinning: When creating a new Directory.Packages.props, it enables CentralPackageTransitivePinningEnabled by default.
  • Safety: As with any tool that modifies project files, it's recommended to run this on a clean git state so you can easily undo the changes if needed.
  • Requirements: Requires .NET 10.0 or later.

Installation

If you prefer to have it installed globally on your machine:

dotnet tool install -g lr-nuget-update

Usage after installation:

lr-nuget-update [directory] [--allow-major]
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.3.23.1520 133 3/23/2026
2026.3.20.1547 116 3/20/2026
2026.3.18.2139 112 3/18/2026
2026.3.18.2121 106 3/18/2026
2026.3.17.1357 112 3/17/2026
2026.3.13.1431 110 3/13/2026
2026.3.13.1429 116 3/13/2026
2026.3.7.136 124 3/7/2026
2026.3.7.132 119 3/7/2026
2026.3.6.1911 117 3/6/2026
2026.3.6.1909 118 3/6/2026
2026.3.4.2320 121 3/4/2026
2026.3.4.2308 117 3/4/2026
2026.1.29.2106 132 1/29/2026
2026.1.6.2043 149 1/6/2026
2025.12.30.415 141 12/30/2025
2025.12.30.413 124 12/30/2025
2025.12.30.352 128 12/30/2025
2025.12.30.346 131 12/30/2025
2025.12.30.343 128 12/30/2025
Loading failed