Skip to content

Commit b5fcb78

Browse files
committed
Update description for self-contained and -no-self-contained options
1 parent 6746c40 commit b5fcb78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/core/tools/dotnet-build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
113113

114114
- **`--no-self-contained`**
115115

116-
Publishes the application as a framework dependent application. A compatible .NET runtime must be installed on the target machine to run the application. Available since .NET 6 SDK.
116+
Equivalent to `--self-contained false`.
117117

118118
- **`-o|--output <OUTPUT_DIRECTORY>`**
119119

@@ -140,7 +140,7 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
140140

141141
- **`--sc|--self-contained`**
142142

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.
143+
Publish the .NET runtime with your application so the runtime doesn't need to be installed on the target machine. The default is `true`.
144144

145145
- **`--source <SOURCE>`**
146146

docs/core/tools/dotnet-publish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ For more information, see the following resources:
182182

183183
- **`--sc|--self-contained`**
184184

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.
185+
Publish the .NET runtime with your application so the runtime doesn't need to be installed on the target machine. The default is `true`.
186186

187187
- **`--no-self-contained`**
188188

0 commit comments

Comments
 (0)