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
@@ -48,6 +50,14 @@ The MSBuild project or solution to clean.
48
50
If a project or solution file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in \f[I]proj\f[R] or \f[I]sln\f[R], and uses that file.
@@ -106,6 +116,34 @@ Cleans the output folder of the specified runtime.
106
116
This is used when a self-contained deployment was created.
107
117
.RE
108
118
.IP\[bu]2
119
+
\f[B]\f[VB]--tl:[auto|on|off]\f[B]\f[R]
120
+
.RS2
121
+
.PP
122
+
Specifies whether the \f[I]terminallogger\f[R] should be used for the build output.
123
+
The default is \f[V]auto\f[R], which first verifies the environment before enabling terminal logging.
124
+
The environment check verifies that the terminal is capable of using modern output features and isn\[cq]t using a redirected standard output before enabling the new logger.
125
+
\f[V]on\f[R] skips the environment check and enables terminal logging.
126
+
\f[V]off\f[R] skips the environment check and uses the default console logger.
127
+
.PP
128
+
The terminal logger shows you the restore phase followed by the build phase.
129
+
During each phase, the currently building projects appear at the bottom of the terminal.
130
+
Each project that\[cq]s building outputs both the MSBuild target currently being built and the amount of time spent on that target.
131
+
You can search this information to learn more about the build.
132
+
When a project is finished building, a single \[lq]build completed\[rq] section is written that captures:
133
+
.IP\[bu]2
134
+
The name of the built project.
135
+
.IP\[bu]2
136
+
The target framework (if multi-targeted).
137
+
.IP\[bu]2
138
+
The status of that build.
139
+
.IP\[bu]2
140
+
The primary output of that build (which is hyperlinked).
See the Diagnostic Port documentation for more information.
241
241
.SS\f[V]DOTNET_EnableDiagnostics\f[R]
242
242
.PP
243
-
When set to \f[V]1\f[R], enables debugging, profiling, and other diagnostics via the Diagnostic Port.
244
-
Defaults to 1.
243
+
When set to \f[V]0\f[R], disables debugging, profiling, and other diagnostics via the Diagnostic Port and can\[cq]t be overridden by other diagnostics settings.
244
+
Defaults to \f[V]1\f[R].
245
+
.SS\f[V]DOTNET_EnableDiagnostics_IPC\f[R]
246
+
.PP
247
+
Starting with .NET 8, when set to \f[V]0\f[R], disables the Diagnostic Port and can\[cq]t be overridden by other diagnostics settings.
248
+
Defaults to \f[V]1\f[R].
249
+
.SS\f[V]DOTNET_EnableDiagnostics_Debugger\f[R]
250
+
.PP
251
+
Starting with .NET 8, when set to \f[V]0\f[R], disables debugging and can\[cq]t be overridden by other diagnostics settings.
252
+
Defaults to \f[V]1\f[R].
253
+
.SS\f[V]DOTNET_EnableDiagnostics_Profiler\f[R]
254
+
.PP
255
+
Starting with .NET 8, when set to \f[V]0\f[R], disables profiling and can\[cq]t be overridden by other diagnostics settings.
256
+
Defaults to \f[V]1\f[R].
245
257
.SS EventPipe variables
246
258
.PP
247
259
See EventPipe environment variables for more information.
@@ -253,11 +265,12 @@ See EventPipe environment variables for more information.
253
265
\f[V]DOTNET_EventPipeOutputStreaming\f[R]: When set to \f[V]1\f[R], enables streaming to the output file while the app is running.
254
266
By default trace information is accumulated in a circular buffer and the contents are written at app shutdown.
Specifies the location of the .NET runtimes, if they are not installed in the default location.
259
271
The default location on Windows is \f[V]C:\[rs]Program Files\[rs]dotnet\f[R].
260
272
The default location on macOS is \f[V]/usr/local/share/dotnet\f[R].
273
+
The default location for the x64 runtimes on an arm64 OS is under an x64 subfolder (so \f[V]C:\[rs]Program Files\[rs]dotnet\[rs]x64\f[R] on windows and \f[V]/usr/local/share/dotnet/x64\f[R] on macOS.
261
274
The default location on Linux varies depending on distro and installment method.
262
275
The default location on Ubuntu 22.04 is \f[V]/usr/share/dotnet\f[R] (when installed from \f[V]packages.microsoft.com\f[R]) or \f[V]/usr/lib/dotnet\f[R] (when installed from Jammy feed).
263
276
For more information, see the following resources:
This environment variable is used only when running apps via generated executables (apphosts).
272
285
\f[V]DOTNET_ROOT(x86)\f[R] is used instead when running a 32-bit executable on a 64-bit OS.
286
+
\f[V]DOTNET_ROOT_X64\f[R] is used instead when running a 64-bit executable on an ARM64 OS.
273
287
.SS\f[V]DOTNET_HOST_PATH\f[R]
274
288
.PP
275
289
Specifies the absolute path to a \f[V]dotnet\f[R] host (\f[V]dotnet.exe\f[R] on Windows, \f[V]dotnet\f[R] on Linux and macOS) that was used to launch the currently-running \f[V]dotnet\f[R] process.
@@ -286,6 +300,83 @@ otherwise, rely on \f[V]dotnet\f[R] via the system\[cq]s \f[V]PATH\f[R]
286
300
\f[V]DOTNET_HOST_PATH\f[R] is not a general solution for locating the \f[V]dotnet\f[R] host.
287
301
It is only intended to be used by tools that are invoked by the .NET SDK.
288
302
.RE
303
+
.SS\f[V]DOTNET_LAUNCH_PROFILE\f[R]
304
+
.PP
305
+
The dotnet run command sets this variable to the selected launch profile.
306
+
.PP
307
+
Given the following \f[I]launchSettings.json\f[R] file:
308
+
.IP
309
+
.nf
310
+
\f[C]
311
+
{
312
+
\[dq]profiles\[dq]: {
313
+
\[dq]First\[dq]: {
314
+
\[dq]commandName\[dq]: \[dq]Project\[dq],
315
+
},
316
+
\[dq]Second\[dq]: {
317
+
\[dq]commandName\[dq]: \[dq]Project\[dq],
318
+
}
319
+
}
320
+
}
321
+
\f[R]
322
+
.fi
323
+
.PP
324
+
And the following \f[I]Program.cs\f[R] file:
325
+
.IP
326
+
.nf
327
+
\f[C]
328
+
var value = Environment.GetEnvironmentVariable(\[dq]DOTNET_LAUNCH_PROFILE\[dq]);
The launch profile \[dq]Third\[dq] could not be applied.
364
+
A launch profile with the name \[aq]Third\[aq] doesn\[aq]t exist.
365
+
DOTNET_LAUNCH_PROFILE=
366
+
\f[R]
367
+
.fi
368
+
.RE
369
+
.IP\[bu]2
370
+
Launch with no profile
371
+
.RS2
372
+
.IP
373
+
.nf
374
+
\f[C]
375
+
$ dotnet run --no-launch-profile
376
+
DOTNET_LAUNCH_PROFILE=
377
+
\f[R]
378
+
.fi
379
+
.RE
289
380
.SS\f[V]NUGET_PACKAGES\f[R]
290
381
.PP
291
382
The global packages folder.
@@ -317,11 +408,16 @@ To not add global tools to the path, set to \f[V]0\f[R], \f[V]false\f[R], or \f[
317
408
.PP
318
409
Specifies whether data about the .NET tools usage is collected and sent to Microsoft.
319
410
Set to \f[V]true\f[R] to opt-out of the telemetry feature (values \f[V]true\f[R], \f[V]1\f[R], or \f[V]yes\f[R] accepted).
320
-
Otherwise, set to \f[V]false\f[R] to opt into the telemetry features (values \f[V]false\f[R], \f[V]0\f[R], or \f[V]no\f[R] accepted).
411
+
Otherwise, set to \f[V]false\f[R] to opt in to the telemetry features (values \f[V]false\f[R], \f[V]0\f[R], or \f[V]no\f[R] accepted).
321
412
If not set, the default is \f[V]false\f[R] and the telemetry feature is active.
322
413
.SS\f[V]DOTNET_SKIP_FIRST_TIME_EXPERIENCE\f[R]
323
414
.PP
324
415
If \f[V]DOTNET_SKIP_FIRST_TIME_EXPERIENCE\f[R] is set to \f[V]true\f[R], the \f[V]NuGetFallbackFolder\f[R] won\[cq]t be expanded to disk and a shorter welcome message and telemetry notice will be shown.
416
+
.RS
417
+
.PP
418
+
This environment variable is no longer supported in .NET Core 3.0 and later.
419
+
Use \f[V]DOTNET_NOLOGO\f[R] as a replacement.
420
+
.RE
325
421
.SS\f[V]DOTNET_MULTILEVEL_LOOKUP\f[R]
326
422
.PP
327
423
Specifies whether the .NET runtime, shared framework, or SDK are resolved from the global location.
@@ -382,6 +478,16 @@ List of assemblies to load and execute startup hooks from.
382
478
Specifies a directory to which a single-file application is extracted before it is executed.
383
479
.PP
384
480
For more information, see Single-file executables.
481
+
.SS\f[V]DOTNET_CLI_HOME\f[R]
482
+
.PP
483
+
Specifies the location that supporting files for .NET CLI commands should be written to.
484
+
For example:
485
+
.IP\[bu]2
486
+
User-writable paths for workload packs, manifests, and other supporting data.
487
+
.IP\[bu]2
488
+
First-run sentinel/lock files for aspects of the .NET CLI\[cq]s first-run migrations and notification experiences.
489
+
.IP\[bu]2
490
+
The default .NET local tool installation location.
385
491
.SS\f[V]DOTNET_CLI_CONTEXT_*\f[R]
386
492
.IP\[bu]2
387
493
\f[V]DOTNET_CLI_CONTEXT_VERBOSE\f[R]: To enable a verbose context, set to \f[V]true\f[R].
0 commit comments