Definition
Assembly: CloudNimble.DotNetDocs.Tools.dll Namespace: CloudNimble.DotNetDocs.Tools.Commands Inheritance: CloudNimble.DotNetDocs.Tools.Commands.Base.DocsCommandBaseSyntax
Summary
Command-line tool for updating existing .docsproj files to use the latest DotNetDocs.Sdk version from NuGet.Remarks
This command searches for all .docsproj files in the current directory (and optionally subdirectories), queries NuGet.org for the latest SDK version, and updates the SDK reference in each file.Constructors
.ctor
Syntax
Properties
ProjectPath
Gets or sets the project name or path to a specific .docsproj file to update.Syntax
Property Value
Type:string?
Recursive
Gets or sets whether to search recursively in subdirectories.Syntax
Property Value
Type:bool
UsePrerelease
Gets or sets whether to use the latest prerelease version of the DotNetDocs.Sdk.Syntax
Property Value
Type:bool
Methods
OnExecute
Executes the command to update .docsproj SDK references to the latest version from NuGet.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
app | McMaster.Extensions.CommandLineUtils.CommandLineApplication | The command-line application context used to access command-line arguments and configuration. |
Returns
Type:System.Threading.Tasks.Task<int>
A task that represents the asynchronous operation. The task result is 0 if the update is
successful; otherwise, 1.