Skip to content

Commit 927b7ea

Browse files
authored
Merge pull request #17877 from dotnet/publish-21913
Merge master into live
2 parents c91110e + 6e97e82 commit 927b7ea

File tree

80 files changed

+504
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+504
-308
lines changed

docs/core/tools/dotnet-add-package.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ ms.date: 02/14/2020
1313

1414
## Synopsis
1515

16-
`dotnet add [<PROJECT>] package <PACKAGE_NAME> [-h|--help] [-f|--framework] [--interactive] [-n|--no-restore] [--package-directory] [-s|--source] [-v|--version]`
16+
```dotnetcli
17+
dotnet add [<PROJECT>] package <PACKAGE_NAME>
18+
[-f|--framework <FRAMEWORK>] [--interactive]
19+
[-n|--no-restore] [--package-directory <PACKAGE_DIRECTORY>]
20+
[-s|--source <SOURCE>] [-v|--version <VERSION>]
21+
22+
dotnet add package -h|--help
23+
```
1724

1825
## Description
1926

docs/core/tools/dotnet-add-reference.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ ms.date: 02/14/2020
77

88
**This article applies to:** ✔️ .NET Core 2.x SDK and later versions
99

10-
<!-- todo: uncomment when all CLI commands are reviewed
11-
[!INCLUDE [topic-appliesto-net-core-all](../../../includes/topic-appliesto-net-core-all.md)]
12-
-->
13-
1410
## Name
1511

1612
`dotnet add reference` - Adds project-to-project (P2P) references.
1713

1814
## Synopsis
1915

20-
`dotnet add [<PROJECT>] reference [-f|--framework] <PROJECT_REFERENCES> [-h|--help] [--interactive]`
16+
```dotnetcli
17+
dotnet add [<PROJECT>] reference [-f|--framework <FRAMEWORK>]
18+
[--interactive] <PROJECT_REFERENCES>
19+
20+
dotnet add reference -h|--help
21+
```
2122

2223
## Description
2324

@@ -43,14 +44,14 @@ The `dotnet add reference` command provides a convenient option to add project r
4344

4445
## Options
4546

46-
- **`-h|--help`**
47-
48-
Prints out a short help for the command.
49-
5047
- **`-f|--framework <FRAMEWORK>`**
5148

5249
Adds project references only when targeting a specific [framework](../../standard/frameworks.md).
5350

51+
- **`-h|--help`**
52+
53+
Prints out a short help for the command.
54+
5455
- **`--interactive`**
5556

5657
Allows the command to stop and wait for user input or action (for example, to complete authentication). Available since .NET Core 3.0 SDK.

docs/core/tools/dotnet-build-server.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ ms.date: 02/14/2020
1515

1616
```dotnetcli
1717
dotnet build-server shutdown [--msbuild] [--razor] [--vbcscompiler]
18-
dotnet build-server shutdown [-h|--help]
19-
dotnet build-server [-h|--help]
18+
19+
dotnet build-server shutdown -h|--help
20+
21+
dotnet build-server -h|--help
2022
```
2123

2224
## Commands

docs/core/tools/dotnet-build.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ ms.date: 02/14/2020
1414
## Synopsis
1515

1616
```dotnetcli
17-
dotnet build [<PROJECT>|<SOLUTION>] [-c|--configuration] [-f|--framework] [--force]
18-
[--interactive] [--no-dependencies] [--no-incremental] [--no-restore] [--nologo]
19-
[-o|--output] [-r|--runtime] [-v|--verbosity] [--version-suffix]
17+
dotnet build [<PROJECT>|<SOLUTION>] [-c|--configuration <CONFIGURATION>]
18+
[-f|--framework <FRAMEWORK>] [--force] [--interactive] [--no-dependencies]
19+
[--no-incremental] [--no-restore] [--nologo] [-o|--output <OUTPUT_DIRECTORY>]
20+
[-r|--runtime <RUNTIME_IDENTIFIER>] [-v|--verbosity <LEVEL>]
21+
[--version-suffix <VERSION_SUFFIX>]
2022
21-
dotnet build [-h|--help]
23+
dotnet build -h|--help
2224
```
2325

2426
## Description

docs/core/tools/dotnet-clean.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ ms.date: 02/14/2020
1414
## Synopsis
1515

1616
```dotnetcli
17-
dotnet clean [<PROJECT>|<SOLUTION>] [-c|--configuration] [-f|--framework] [--interactive]
18-
[--nologo] [-o|--output] [-r|--runtime] [-v|--verbosity]
19-
dotnet clean [-h|--help]
17+
dotnet clean [<PROJECT>|<SOLUTION>] [-c|--configuration <CONFIGURATION>]
18+
[-f|--framework <FRAMEWORK>] [--interactive]
19+
[--nologo] [-o|--output <OUTPUT_DIRECTORY>]
20+
[-r|--runtime <RUNTIME_IDENTIFIER>] [-v|--verbosity <LEVEL>]
21+
22+
dotnet clean -h|--help
2023
```
2124

2225
## Description

docs/core/tools/dotnet-help.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ ms.date: 02/14/2020
1313

1414
## Synopsis
1515

16-
`dotnet help <COMMAND_NAME> [-h|--help]`
16+
```dotnetcli
17+
dotnet help <COMMAND_NAME> [-h|--help]
18+
```
1719

1820
## Description
1921

docs/core/tools/dotnet-install-script.md

Lines changed: 62 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,28 @@ ms.date: 01/23/2020
1414
Windows:
1515

1616
```powershell
17-
dotnet-install.ps1 [-Channel] [-Version] [-JSonFile] [-InstallDir] [-Architecture]
18-
[-Runtime] [-DryRun] [-NoPath] [-Verbose] [-AzureFeed] [-UncachedFeed] [-NoCdn] [-FeedCredential]
19-
[-ProxyAddress] [-ProxyUseDefaultCredentials] [-SkipNonVersionedFiles] [-Help]
17+
dotnet-install.ps1 [-Architecture <ARCHITECTURE>] [-AzureFeed]
18+
[-Channel <CHANNEL>] [-DryRun] [-FeedCredential]
19+
[-InstallDir <DIRECTORY>] [-JSonFile <JSONFILE>]
20+
[-NoCdn] [-NoPath] [-ProxyAddress]
21+
[-ProxyUseDefaultCredentials] [-Runtime <RUNTIME>]
22+
[-SkipNonVersionedFiles] [-UncachedFeed] [-Verbose]
23+
[-Version <VERSION>]
24+
25+
dotnet-install.ps1 -Help
2026
```
2127

2228
Linux/macOs:
2329

2430
```bash
25-
dotnet-install.sh [--channel] [--version] [--jsonfile] [--install-dir] [--architecture]
26-
[--runtime] [--dry-run] [--no-path] [--verbose] [--azure-feed] [--uncached-feed] [--no-cdn] [--feed-credential]
27-
[--runtime-id] [--skip-non-versioned-files] [--help]
31+
dotnet-install.sh [--architecture <ARCHITECTURE>] [--azure-feed]
32+
[--channel <CHANNEL>] [--dry-run] [--feed-credential]
33+
[--install-dir <DIRECTORY>] [--jsonfile <JSONFILE>]
34+
[--no-cdn] [--no-path] [--runtime <RUNTIME>] [--runtime-id <RID>]
35+
[--skip-non-versioned-files] [--uncached-feed] [--verbose]
36+
[--version <VERSION>]
37+
38+
dotnet-install.sh --help
2839
```
2940

3041
## Description
@@ -48,6 +59,14 @@ You can install a specific version using the `-Version|--version` argument. The
4859

4960
## Options
5061

62+
- **`-Architecture|--architecture <ARCHITECTURE>`**
63+
64+
Architecture of the .NET Core binaries to install. Possible values are `<auto>`, `amd64`, `x64`, `x86`, `arm64`, and `arm`. The default value is `<auto>`, which represents the currently running OS architecture.
65+
66+
- **`-AzureFeed|--azure-feed`**
67+
68+
Specifies the URL for the Azure feed to the installer. We recommended that you don't change this value. The default value is `https://dotnetcli.azureedge.net/dotnet`.
69+
5170
- **`-Channel|--channel <CHANNEL>`**
5271

5372
Specifies the source channel for the installation. The possible values are:
@@ -59,34 +78,41 @@ You can install a specific version using the `-Version|--version` argument. The
5978

6079
The default value is `LTS`. For more information on .NET support channels, see the [.NET Support Policy](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) page.
6180

62-
- **`-Version|--version <VERSION>`**
81+
- **`-DryRun|--dry-run`**
6382

64-
Represents a specific build version. The possible values are:
83+
If set, the script won't perform the installation. Instead, it displays what command line to use to consistently install the currently requested version of the .NET Core CLI. For example, if you specify version `latest`, it displays a link with the specific version so that this command can be used deterministically in a build script. It also displays the binary's location if you prefer to install or download it yourself.
6584

66-
- `latest` - Latest build on the channel (used with the `-Channel` option).
67-
- `coherent` - Latest coherent build on the channel; uses the latest stable package combination (used with Branch name `-Channel` options).
68-
- Three-part version in X.Y.Z format representing a specific build version; supersedes the `-Channel` option. For example: `2.0.0-preview2-006120`.
85+
- **`-FeedCredential|--feed-credential`**
6986

70-
If not specified, `-Version` defaults to `latest`.
87+
Used as a query string to append to the Azure feed. It allows changing the URL to use non-public blob storage accounts.
7188

72-
- **`-JSonFile|--jsonfile <JSONFILE>`**
89+
- **`-Help|--help`**
7390

74-
Specifies a path to a [global.json](global-json.md) file that will be used to determine the SDK version. The *global.json* file must have a value for `sdk:version`.
91+
Prints out help for the script.
7592

7693
- **`-InstallDir|--install-dir <DIRECTORY>`**
7794

7895
Specifies the installation path. The directory is created if it doesn't exist. The default value is *%LocalAppData%\Microsoft\dotnet*. Binaries are placed directly in this directory.
7996

80-
- **`-Architecture|--architecture <ARCHITECTURE>`**
97+
- **`-JSonFile|--jsonfile <JSONFILE>`**
8198

82-
Architecture of the .NET Core binaries to install. Possible values are `<auto>`, `amd64`, `x64`, `x86`, `arm64`, and `arm`. The default value is `<auto>`, which represents the currently running OS architecture.
99+
Specifies a path to a [global.json](global-json.md) file that will be used to determine the SDK version. The *global.json* file must have a value for `sdk:version`.
83100

84-
- **`-SharedRuntime|--shared-runtime`**
101+
- **`-NoCdn|--no-cdn`**
85102

86-
> [!NOTE]
87-
> This parameter is obsolete and may be removed in a future version of the script. The recommended alternative is the `-Runtime|--runtime` option.
103+
Disables downloading from the [Azure Content Delivery Network (CDN)](https://docs.microsoft.com/azure/cdn/cdn-overview) and uses the uncached feed directly.
88104

89-
Installs just the shared runtime bits, not the entire SDK. This option is equivalent to specifying `-Runtime|--runtime dotnet`.
105+
- **`-NoPath|--no-path`**
106+
107+
If set, the installation folder isn't exported to the path for the current session. By default, the script modifies the PATH, which makes the .NET Core CLI available immediately after install.
108+
109+
- **`-ProxyAddress`**
110+
111+
If set, the installer uses the proxy when making web requests. (Only valid for Windows.)
112+
113+
- **`ProxyUseDefaultCredentials`**
114+
115+
If set, the installer uses the credentials of the current user when using proxy address. (Only valid for Windows.)
90116

91117
- **`-Runtime|--runtime <RUNTIME>`**
92118

@@ -96,53 +122,38 @@ You can install a specific version using the `-Version|--version` argument. The
96122
- `aspnetcore` - the `Microsoft.AspNetCore.App` shared runtime.
97123
- `windowsdesktop` - the `Microsoft.WindowsDesktop.App` shared runtime.
98124

99-
- **`-DryRun|--dry-run`**
100-
101-
If set, the script won't perform the installation. Instead, it displays what command line to use to consistently install the currently requested version of the .NET Core CLI. For example, if you specify version `latest`, it displays a link with the specific version so that this command can be used deterministically in a build script. It also displays the binary's location if you prefer to install or download it yourself.
125+
- **`--runtime-id <RID>`**
102126

103-
- **`-NoPath|--no-path`**
127+
Specifies the [runtime identifier](../rid-catalog.md) for which the tools are being installed. Use `linux-x64` for portable Linux. (Only valid for Linux/macOS.)
104128

105-
If set, the installation folder isn't exported to the path for the current session. By default, the script modifies the PATH, which makes the .NET Core CLI available immediately after install.
129+
- **`-SharedRuntime|--shared-runtime`**
106130

107-
- **`-Verbose|--verbose`**
131+
> [!NOTE]
132+
> This parameter is obsolete and may be removed in a future version of the script. The recommended alternative is the `-Runtime|--runtime` option.
108133
109-
Displays diagnostics information.
134+
Installs just the shared runtime bits, not the entire SDK. This option is equivalent to specifying `-Runtime|--runtime dotnet`.
110135

111-
- **`-AzureFeed|--azure-feed`**
136+
- **`-SkipNonVersionedFiles|--skip-non-versioned-files`**
112137

113-
Specifies the URL for the Azure feed to the installer. We recommended that you don't change this value. The default value is `https://dotnetcli.azureedge.net/dotnet`.
138+
Skips installing non-versioned files, such as *dotnet.exe*, if they already exist.
114139

115140
- **`-UncachedFeed|--uncached-feed`**
116141

117142
Allows changing the URL for the uncached feed used by this installer. We recommended that you don't change this value.
118143

119-
- **`-NoCdn|--no-cdn`**
120-
121-
Disables downloading from the [Azure Content Delivery Network (CDN)](https://docs.microsoft.com/azure/cdn/cdn-overview) and uses the uncached feed directly.
122-
123-
- **`-FeedCredential|--feed-credential`**
124-
125-
Used as a query string to append to the Azure feed. It allows changing the URL to use non-public blob storage accounts.
126-
127-
- **`--runtime-id`**
128-
129-
Specifies the [runtime identifier](../rid-catalog.md) for which the tools are being installed. Use `linux-x64` for portable Linux. (Only valid for Linux/macOS)
130-
131-
- **`-ProxyAddress`**
132-
133-
If set, the installer uses the proxy when making web requests. (Only valid for Windows)
134-
135-
- **`ProxyUseDefaultCredentials`**
144+
- **`-Verbose|--verbose`**
136145

137-
If set, the installer uses the credentials of the current user when using proxy address. (Only valid for Windows)
146+
Displays diagnostics information.
138147

139-
- **`-SkipNonVersionedFiles|--skip-non-versioned-files`**
148+
- **`-Version|--version <VERSION>`**
140149

141-
Skips installing non-versioned files, such as *dotnet.exe*, if they already exist.
150+
Represents a specific build version. The possible values are:
142151

143-
- **`-Help|--help`**
152+
- `latest` - Latest build on the channel (used with the `-Channel` option).
153+
- `coherent` - Latest coherent build on the channel; uses the latest stable package combination (used with Branch name `-Channel` options).
154+
- Three-part version in X.Y.Z format representing a specific build version; supersedes the `-Channel` option. For example: `2.0.0-preview2-006120`.
144155

145-
Prints out help for the script.
156+
If not specified, `-Version` defaults to `latest`.
146157

147158
## Examples
148159

docs/core/tools/dotnet-list-package.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ ms.date: 02/14/2020
1414
## Synopsis
1515

1616
```dotnetcli
17-
dotnet list [<PROJECT>|<SOLUTION>] package [--config] [--framework] [--highest-minor] [--highest-patch]
18-
[--include-prerelease] [--include-transitive] [--interactive] [--outdated] [--source]
19-
dotnet list package [-h|--help]
17+
dotnet list [<PROJECT>|<SOLUTION>] package [--config <SOURCE>]
18+
[--framework <FRAMEWORK>] [--highest-minor] [--highest-patch]
19+
[--include-prerelease] [--include-transitive] [--interactive]
20+
[--outdated] [--source <SOURCE>]
21+
22+
dotnet list package -h|--help
2023
```
2124

2225
## Description

docs/core/tools/dotnet-list-reference.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ ms.date: 02/14/2020
1313

1414
## Synopsis
1515

16-
`dotnet list [<PROJECT>|<SOLUTION>] reference [-h|--help]`
16+
```dotnetcli
17+
dotnet list [<PROJECT>|<SOLUTION>] reference
18+
19+
dotnet list -h|--help
20+
```
1721

1822
## Description
1923

docs/core/tools/dotnet-migrate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ ms.date: 02/14/2020
1414
## Synopsis
1515

1616
```dotnetcli
17-
dotnet migrate [<SOLUTION_FILE|PROJECT_DIR>] [--format-report-file-json] [-r|--report-file] [-s|--skip-project-references] [--skip-backup] [-t|--template-file] [-v|--sdk-package-version] [-x|--xproj-file]
18-
dotnet migrate [-h|--help]
17+
dotnet migrate [<SOLUTION_FILE|PROJECT_DIR>] [--format-report-file-json <REPORT_FILE>]
18+
[-r|--report-file <REPORT_FILE>] [-s|--skip-project-references [Debug|Release]]
19+
[--skip-backup] [-t|--template-file <TEMPLATE_FILE>] [-v|--sdk-package-version]
20+
[-x|--xproj-file]
21+
22+
dotnet migrate -h|--help
1923
```
2024

2125
## Description

0 commit comments

Comments
 (0)