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
@@ -134,9 +134,7 @@ For more information, see the following resources:
134
134
135
135
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.
@@ -182,11 +180,9 @@ For more information, see the following resources:
182
180
183
181
[!INCLUDE [os](../../../includes/cli-os.md)]
184
182
185
-
-**`--sc|--self-contained [true|false]`**
186
-
187
-
Publishes the .NET runtime with your application so the runtime doesn't need to be installed on the target machine. Default is `true` if a runtime identifier is specified and the project is an executable project (not a library project). For more information, see [Self-contained deployment](../deploying/index.md#self-contained-deployment).
183
+
-**`--sc|--self-contained`**
188
184
189
-
If this option is used without specifying `true` or `false`, the default is `true`. In that case, don't put the solution or project argument immediately after `--self-contained`, because `true` or `false` is expected in that position.
185
+
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.
190
186
191
187
-**`--no-self-contained`**
192
188
@@ -202,16 +198,18 @@ For more information, see the following resources:
202
198
203
199
[!INCLUDE [tl](../../../includes/cli-tl.md)]
204
200
205
-
-**`--use-current-runtime, --ucr [true|false]`**
201
+
-**`--ucr|--use-current-runtime`**
206
202
207
-
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.
203
+
Use current runtime as the target runtime. The default is `false`.
0 commit comments