You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -95,8 +93,6 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
95
93
96
94
Forces all dependencies to be resolved even if the last restore was successful. Specifying this flag is the same as deleting the *project.assets.json* file.
@@ -142,28 +138,30 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
142
138
143
139
Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the [RID catalog](../rid-catalog.md). If you use this option with .NET 6 SDK, use `--self-contained` or `--no-self-contained` also. If not specified, the default is to build for the current OS and architecture.
144
140
145
-
-**`--self-contained [true|false]`**
141
+
-**`--sc|--self-contained`**
146
142
147
-
Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is `true` if a runtime identifier is specified. Available since .NET 6.
143
+
Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is `false`. However, when targeting .NET 7 or lower, the default is `true` if a runtime identifier is specified. Available since .NET 6 SDK.
148
144
149
145
-**`--source <SOURCE>`**
150
146
151
147
The URI of the NuGet package source to use during the restore operation.
152
148
153
149
[!INCLUDE [tl](../../../includes/cli-tl.md)]
154
150
155
-
-**`-v|--verbosity <LEVEL>`**
151
+
-**`--ucr|--use-current-runtime`**
156
152
157
-
Sets the verbosity level of the command. Allowed values are `q[uiet]`, `m[inimal]`, `n[ormal]`, `d[etailed]`, and `diag[nostic]`. The default is `minimal`. By default, MSBuild displays warnings and errors at all verbosity levels. To exclude warnings, use `/property:WarningLevel=0`. For more information, see <xref:Microsoft.Build.Framework.LoggerVerbosity> and [WarningLevel](../../csharp/language-reference/compiler-options/errors-warnings.md#warninglevel).
153
+
Use current runtime as the target runtime. The default is `false`.
158
154
159
-
-**`--use-current-runtime, --ucr [true|false]`**
155
+
-**`-v|--verbosity <LEVEL>`**
160
156
161
-
Sets the `RuntimeIdentifier` to a platform portable `RuntimeIdentifier` based on the one of your machine. This happens implicitly with properties that require a `RuntimeIdentifier`, such as `SelfContained`, `PublishAot`, `PublishSelfContained`, `PublishSingleFile`, and `PublishReadyToRun`. If the property is set to false, that implicit resolution will no longer occur.
157
+
Sets the verbosity level of the command. Allowed values are `q[uiet]`, `m[inimal]`, `n[ormal]`, `d[etailed]`, and `diag[nostic]`. The default is `minimal`. By default, MSBuild displays warnings and errors at all verbosity levels. To exclude warnings, use `/property:WarningLevel=0`. For more information, see <xref:Microsoft.Build.Framework.LoggerVerbosity> and [WarningLevel](../../csharp/language-reference/compiler-options/errors-warnings.md#warninglevel).
162
158
163
159
-**`--version-suffix <VERSION_SUFFIX>`**
164
160
165
161
Sets the value of the `$(VersionSuffix)` property to use when building the project. This only works if the `$(Version)` property isn't set. Then, `$(Version)` is set to the `$(VersionPrefix)` combined with the `$(VersionSuffix)`, separated by a dash.
@@ -61,6 +62,10 @@ The `dotnet dev-certs` command manages a self-signed certificate to enable HTTPS
61
62
62
63
Checks for the existence of the development certificate but doesn't perform any action. Use this option with the `--trust` option to check if the certificate is not only valid but also trusted.
63
64
65
+
-**`--check-trust-machine-readable`**
66
+
67
+
Same as running `--check --trust`, but outputs the results in json.
68
+
64
69
-**`--clean`**
65
70
66
71
Removes all HTTPS development certificates from the certificate store by using the .NET certificate store API. Doesn't remove any physical files that were created by using the `--export-path` option. On macOS in .NET 7.0, the `dotnet dev-certs` command creates the certificate on a path on disk, and the clean operation removes that certificate file.
@@ -140,10 +145,6 @@ The `dotnet dev-certs` command manages a self-signed certificate to enable HTTPS
140
145
141
146
Display debug information.
142
147
143
-
-**`--check-trust-machine-readable`**
144
-
145
-
Same as running `--check --trust`, but outputs the results in json.
146
-
147
148
## Examples
148
149
149
150
- Check for the presence of a development certificate, and create one in the default certificate store if one doesn't exist yet. But don't trust the certificate.
@@ -34,54 +38,54 @@ The MSBuild project or solution to run code formatting on. If a project or solut
34
38
35
39
None of the options below are required for the `dotnet format` command to succeed, but you can use them to further customize what is formatted and by which rules.
36
40
37
-
-**`--diagnostics <DIAGNOSTICS>`**
38
-
39
-
A space-separated list of diagnostic IDs to use as a filter when fixing code style or third-party issues. Default value is whichever IDs are listed in the *.editorconfig* file. For a list of built-in analyzer rule IDs that you can specify, see the [list of IDs for code-analysis style rules](../../fundamentals/code-analysis/style-rules/index.md).
A space-separated list of diagnostic IDs to exclude when fixing code style or third-party issues. Default value is none. For a list of built-in analyzer rule IDs that you can specify, see the [list of IDs for code-analysis style rules](../../fundamentals/code-analysis/style-rules/index.md).
43
+
Logs all project or solution load information to a binary log file.
44
44
45
-
-**`--severity`**
45
+
-**`--diagnostics <DIAGNOSTICS>`**
46
46
47
-
The minimum severity of diagnostics to fix. Allowed values are `info`, `warn`, and `error`. The default value is `warn`.
47
+
A space-separated list of diagnostic IDs to use as a filter when fixing code style or third-party issues. Default value is whichever IDs are listed in the *.editorconfig* file. For a list of built-in analyzer rule IDs that you can specify, see the [list of IDs for code-analysis style rules](../../fundamentals/code-analysis/style-rules/index.md).
48
48
49
-
-**`--no-restore`**
49
+
-**`--exclude <EXCLUDE>`**
50
50
51
-
Doesn't execute an implicit restore before formatting. Default is to do implicit restore.
51
+
A space-separated list of relative file or folder paths to exclude from formatting. The default is none.
Verifies that no formatting changes would be performed. Terminates with a non zero exit code if any files would have been formatted.
55
+
A space-separated list of diagnostic IDs to exclude when fixing code style or third-party issues. Default value is none. For a list of built-in analyzer rule IDs that you can specify, see the [list of IDs for code-analysis style rules](../../fundamentals/code-analysis/style-rules/index.md).
56
56
57
57
-**`--include <INCLUDE>`**
58
58
59
59
A space-separated list of relative file or folder paths to include in formatting. The default is all files in the solution or project.
60
60
61
-
-**`--exclude <EXCLUDE>`**
62
-
63
-
A space-separated list of relative file or folder paths to exclude from formatting. The default is none.
64
-
65
61
-**`--include-generated`**
66
62
67
63
Formats files generated by the SDK.
68
64
69
-
-**`-v|--verbosity <LEVEL>`**
70
-
71
-
Sets the verbosity level. Allowed values are `q[uiet]`, `m[inimal]`, `n[ormal]`, `d[etailed]`, and `diag[nostic]`. Default value is `m[inimal]`.
72
-
73
-
-**`--binarylog <BINARY-LOG-PATH>`**
65
+
-**`--no-restore`**
74
66
75
-
Logs all project or solution load information to a binary log file.
67
+
Doesn't execute an implicit restore before formatting. Default is to do implicit restore.
76
68
77
69
-**`--report <REPORT-PATH>`**
78
70
79
71
Produces a JSON report in the directory specified by `<REPORT_PATH>`.
80
72
73
+
-**`--severity`**
74
+
75
+
The minimum severity of diagnostics to fix. Allowed values are `info`, `warn`, and `error`. The default value is `warn`.
76
+
77
+
-**`--verify-no-changes`**
78
+
79
+
Verifies that no formatting changes would be performed. Terminates with a non zero exit code if any files would have been formatted.
80
+
81
81
-**`--version`**
82
82
83
83
Displays version information.
84
84
85
+
-**`-v|--verbosity <LEVEL>`**
86
+
87
+
Sets the verbosity level. Allowed values are `q[uiet]`, `m[inimal]`, `n[ormal]`, `d[etailed]`, and `diag[nostic]`. Default value is `m[inimal]`.
@@ -67,8 +70,6 @@ You can provide MSBuild properties to the `dotnet pack` command for the packing
67
70
68
71
Forces all dependencies to be resolved even if the last restore was successful. Specifying this flag is the same as deleting the *project.assets.json* file.
69
72
70
-
[!INCLUDE [help](../../../includes/cli-help.md)]
71
-
72
73
-**`--include-source`**
73
74
74
75
Includes the debug symbols NuGet packages in addition to the regular NuGet packages in the output directory. The sources files are included in the `src` folder within the symbols package.
@@ -131,6 +132,8 @@ You can provide MSBuild properties to the `dotnet pack` command for the packing
131
132
132
133
If `Version` has a value and you pass `--version-suffix` to `dotnet pack`, the value specified for `--version-suffix` is ignored.
@@ -35,15 +35,15 @@ The package reference to remove.
35
35
36
36
## Options
37
37
38
-
-**`-p|--project <PROJECT>`**
38
+
-**`--file <FILE>`**
39
39
40
-
The project fileto operate on. If a solution file is specified, the command will update the package in all projects in the solution that reference it. If not specified, the command will search the current directory for a project file.
The project fileto operate on. If a solution file is specified, the command will update the package in all projects in the solution that reference it. If not specified, the command will search the current directory for a project file.
0 commit comments