UpdatR 5.0.0
Prefix Reserveddotnet add package UpdatR --version 5.0.0
NuGet\Install-Package UpdatR -Version 5.0.0
<PackageReference Include="UpdatR" Version="5.0.0" />
<PackageVersion Include="UpdatR" Version="5.0.0" />
<PackageReference Include="UpdatR" />
paket add UpdatR --version 5.0.0
#r "nuget: UpdatR, 5.0.0"
#:package UpdatR@5.0.0
#addin nuget:?package=UpdatR&version=5.0.0
#tool nuget:?package=UpdatR&version=5.0.0
UpdatR
NuGet package to programmatically update package reference, dotnet-tools.json and #:package directives in file-based apps.
The tool will try to stick to package versions that is supported by the projects target framework moniker. If a package supports both .NETStandard and .NET, the compatibility with .NETStandard will be ignored if the project is targeting .NET. This is to avoid false positives where a package technically supports a TFM but in reality never have been tested against the TFM.
See dotnet-updatr for a dotnet tool that can be run from the command-line.
Usage
using UpdatR;
using UpdatR.Formatters;
var updatr = new Updater(); // Can take an ILogger
var summary = await updatr.UpdateAsync("path");
if (summary.UpdatedPackagesCount == 0) // No packages where updated
{
return;
}
var title = MarkdownFormatter.GenerateTitle(summary);
var description =
"# PR created automatically by UpdatR"
+ Environment.NewLine
+ Environment.NewLine
+ MarkdownFormatter.GenerateDescription(summary);
// Use title as title in the PR and description as the description/body in the PR
Icon
Package by Sergey Novosyolov from NounProject.com
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- NuGet.Credentials (>= 7.9.0)
- NuGet.Protocol (>= 7.9.0)
- NuGet.Versioning (>= 7.9.0)
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 |
|---|---|---|
| 5.0.0 | 77 | 8/25/2026 |
| 5.0.0-beta.0 | 39 | 8/25/2026 |
| 4.0.2 | 406 | 12/5/2025 |
| 4.0.1 | 396 | 11/25/2024 |
| 4.0.0 | 318 | 11/20/2024 |
| 3.0.0 | 273 | 11/1/2024 |
| 2.1.2 | 309 | 9/30/2024 |
| 2.1.1 | 288 | 9/19/2024 |
| 2.1.0 | 347 | 7/8/2024 |
| 2.0.1 | 1,125 | 1/30/2023 |
| 2.0.0 | 1,173 | 6/1/2022 |
| 1.2.5 | 1,139 | 4/26/2022 |
| 1.2.4 | 1,030 | 4/25/2022 |
| 1.2.3 | 1,088 | 4/11/2022 |
| 1.2.2 | 1,064 | 4/4/2022 |
| 1.2.1 | 1,137 | 3/31/2022 |
| 1.2.0 | 1,070 | 3/21/2022 |
| 1.1.1 | 1,279 | 3/7/2022 |
| 1.1.0 | 1,085 | 3/7/2022 |
- Upgrade TFM to .NET 10
- Add support for file-based apps
- Support comments in dotnet-tools.json