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
{{ message }}
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: docs/core/executors/build.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,24 +10,24 @@ Builds an app via the `dotnet` cli command.
10
10
11
11
## Options
12
12
13
-
### framework
14
-
15
-
- (string): Compiles for a specific framework. The framework must be defined in the project file
16
-
17
-
### version-suffix
18
-
19
-
- (string): 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.
- (string): Defines the build configuration. The default for most projects is Debug, but you can override the build configuration settings in your project
24
16
25
17
Default: `"Debug"`
26
18
19
+
### extraParameters
20
+
21
+
- (string): Extra command-line arguments that are passed verbatim to the dotnet command.
22
+
27
23
### force
28
24
29
25
- (boolean): 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.
30
26
27
+
### framework
28
+
29
+
- (string): Compiles for a specific framework. The framework must be defined in the project file
30
+
31
31
### no-dependencies
32
32
33
33
- (boolean): Ignores project-to-project (P2P) references and only builds the specified root project.
@@ -54,6 +54,6 @@ Default: `"Debug"`
54
54
55
55
Default: `"minimal"`
56
56
57
-
### extraParameters
57
+
### version-suffix
58
58
59
-
- (string): Extra command-line arguments that are passed verbatim to the dotnet command.
59
+
- (string): 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.
Copy file name to clipboardExpand all lines: docs/core/executors/publish.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,18 @@ Publishes an app via the `dotnet` cli command.
16
16
17
17
Default: `"Debug"`
18
18
19
-
### framework
19
+
### extraParameters
20
20
21
-
- (string): Publishes the application for the specified target framework. You must specify the target framework in the project file.
21
+
- (string): Extra command-line arguments that are passed verbatim to the dotnet command.
22
22
23
23
### force
24
24
25
25
- (boolean): 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.
26
26
27
+
### framework
28
+
29
+
- (string): Publishes the application for the specified target framework. You must specify the target framework in the project file.
30
+
27
31
### noBuild
28
32
29
33
- (boolean): Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.
@@ -44,14 +48,18 @@ Default: `"Debug"`
44
48
45
49
- (string): Specifies the path for the output directory.
46
50
47
-
### selfContained
51
+
### publishProfile
48
52
49
-
- (boolean): 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).
53
+
- (string): Specifies the name of the publish profile to use while publishing. Do not include the file path or the file extension. MSBuild by default looks in the Properties/PublishProfiles folder and assumes the pubxml file extension.
50
54
51
55
### runtime
52
56
53
57
- (string): Publishes the application for a given runtime.
54
58
59
+
### selfContained
60
+
61
+
- (boolean): 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).
62
+
55
63
### verbosity
56
64
57
65
- (string): Sets the verbosity level of the command.
@@ -61,11 +69,3 @@ Default: `"minimal"`
61
69
### versionSuffix
62
70
63
71
- (string): Defines the version suffix to replace the asterisk (\*) in the version field of the project file.
64
-
65
-
### publishProfile
66
-
67
-
- (string): Specifies the name of the publish profile to use while publishing. Do not include the file path or the file extension. MSBuild by default looks in the Properties/PublishProfiles folder and assumes the pubxml file extension.
68
-
69
-
### extraParameters
70
-
71
-
- (string): Extra command-line arguments that are passed verbatim to the dotnet command.
Copy file name to clipboardExpand all lines: docs/core/executors/serve.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,14 @@ Uses `dotnet watch` to run a .NET app.
16
16
17
17
Default: `"Debug"`
18
18
19
-
### framework
20
-
21
-
- (string): Builds and runs the app using the specified framework. The framework must be specified in the project file.
22
-
23
19
### force
24
20
25
21
- (boolean): 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.
26
22
23
+
### framework
24
+
25
+
- (string): Builds and runs the app using the specified framework. The framework must be specified in the project file.
26
+
27
27
### launch-profile
28
28
29
29
- (string): The name of the launch profile (if any) to use when launching the application. Launch profiles are defined in the launchSettings.json file and are typically called Development, Staging, and Production. For more information, see Working with multiple environments.
Copy file name to clipboardExpand all lines: docs/core/executors/test.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,6 @@ Runs test via the dotnet cli
10
10
11
11
## Options
12
12
13
-
### testAdapterPath
14
-
15
-
- (string): Path to a directory to be searched for additional test adapters. Only .dll files with suffix .TestAdapter.dll are inspected. If not specified, the directory of the test .dll is searched.
16
-
17
13
### blame
18
14
19
15
- (boolean): Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash. When a crash is detected, it creates a sequence file in TestResults/<Guid>/<Guid>\_Sequence.xml that captures the order of tests that were run before the crash.
@@ -22,14 +18,14 @@ Runs test via the dotnet cli
22
18
23
19
- (boolean): Runs the tests in blame mode and collects a crash dump when the test host exits unexpectedly. This option depends on the version of .NET used, the type of error, and the operating system. For exceptions in managed code, a dump will be automatically collected on .NET 5.0 and later versions. It will generate a dump for testhost or any child process that also ran on .NET 5.0 and crashed. Crashes in native code will not generate a dump. This option works on Windows, macOS, and Linux. Crash dumps in native code, or when using .NET Core 3.1 or earlier versions, can only be collected on Windows, by using Procdump. A directory that contains procdump.exe and procdump64.exe must be in the PATH or PROCDUMP_PATH environment variable. Download the tools. Implies --blame. To collect a crash dump from a native application running on .NET 5.0 or later, the usage of Procdump can be forced by setting the VSTEST_DUMP_FORCEPROCDUMP environment variable to 1.
24
20
25
-
### blameCrashDumpType
26
-
27
-
- (string): The type of crash dump to be collected. Implies --blame-crash.
28
-
29
21
### blameCrashCollectAlways
30
22
31
23
- (boolean): Collects a crash dump on expected as well as unexpected test host exit.
32
24
25
+
### blameCrashDumpType
26
+
27
+
- (string): The type of crash dump to be collected. Implies --blame-crash.
28
+
33
29
### blameHang
34
30
35
31
- (boolean): Run the tests in blame mode and collects a hang dump when a test exceeds the given timeout.
When no unit is used (for example, 5400000), the value is assumed to be in milliseconds. When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case. For MSTest, the timeout is used for all test cases. This option is supported on Windows with netcoreapp2.1 and later, on Linux with netcoreapp3.1 and later, and on macOS with net5.0 or later. Implies --blame and --blame-hang.
49
45
50
-
### configuration
51
-
52
-
- (string): Defines the build configuration. The default value is Debug, but your project's configuration could override this default SDK setting.
53
-
54
46
### collect
55
47
56
48
- (string): Enables data collector for the test run. For more information, see Monitor and analyze test run.
57
49
To collect code coverage on any platform that is supported by .NET Core, install Coverlet and use the --collect:"XPlat Code Coverage" option.
58
50
On Windows, you can collect code coverage by using the --collect "Code Coverage" option. This option generates a .coverage file, which can be opened in Visual Studio 2019 Enterprise. For more information, see Use code coverage and Customize code coverage analysis.
59
51
52
+
### configuration
53
+
54
+
- (string): Defines the build configuration. The default value is Debug, but your project's configuration could override this default SDK setting.
55
+
60
56
### diag
61
57
62
58
- (string): Enables diagnostic mode for the test platform and writes diagnostic messages to the specified file and to files next to it. The process that is logging the messages determines which files are created, such as _.host\_<date>.txt for test host log, and _.datacollector\_<date>.txt for data collector log.
63
59
64
-
### framework
60
+
### extraParameters
65
61
66
-
- (string): Forces the use of dotnet or .NET Framework test host for the test binaries. This option only determines which type of host to use. The actual framework version to be used is determined by the runtimeconfig.json of the test project. When not specified, the TargetFramework assembly attribute is used to determine the type of host. When that attribute is stripped from the .dll, the .NET Framework host is used.
62
+
- (string): Extra command-line arguments that are passed verbatim to the dotnet command.
67
63
68
64
### filter
69
65
70
66
- (string): Filters out tests in the current project using the given expression. For more information, see the Filter option details section. For more information and examples on how to use selective unit test filtering, see Running selective unit tests.
71
67
68
+
### framework
69
+
70
+
- (string): Forces the use of dotnet or .NET Framework test host for the test binaries. This option only determines which type of host to use. The actual framework version to be used is determined by the runtimeconfig.json of the test project. When not specified, the TargetFramework assembly attribute is used to determine the type of host. When that attribute is stripped from the .dll, the .NET Framework host is used.
71
+
72
+
### listTests
73
+
74
+
- (boolean): List the discovered tests instead of running the tests.
75
+
72
76
### logger
73
77
74
78
- (string): Specifies a logger for test results. Unlike MSBuild, dotnet test doesn't accept abbreviations: instead of -l "console;v=d" use -l "console;verbosity=detailed". Specify the parameter multiple times to enable multiple loggers.
@@ -97,9 +101,9 @@ Runs test via the dotnet cli
97
101
98
102
- (string): The .runsettings file to use for running the tests. The TargetPlatform element (x86|x64) has no effect for dotnet test. To run tests that target x86, install the x86 version of .NET Core. The bitness of the dotnet.exe that is on the path is what will be used for running tests. For more information, see the following resources:
99
103
100
-
### listTests
104
+
### testAdapterPath
101
105
102
-
- (boolean): List the discovered tests instead of running the tests.
106
+
- (string): Path to a directory to be searched for additional test adapters. Only .dll files with suffix .TestAdapter.dll are inspected. If not specified, the directory of the test .dll is searched.
103
107
104
108
### verbosity
105
109
@@ -108,7 +112,3 @@ Runs test via the dotnet cli
108
112
### watch
109
113
110
114
- (boolean): Determines if `dotnet test` or `dotnet watch test` is used to execute tests.
111
-
112
-
### extraParameters
113
-
114
-
- (string): Extra command-line arguments that are passed verbatim to the dotnet command.
0 commit comments