Skip to content

Commit

Permalink
Add documentation for the --artifacts-path command option (#40637)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Apr 29, 2024
1 parent 8ba2a60 commit 3b5fccd
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/core/tools/dotnet-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ms.date: 11/27/2023

```dotnetcli
dotnet build [<PROJECT>|<SOLUTION>] [-a|--arch <ARCHITECTURE>]
[--artifacts-path <ARTIFACTS_DIR>]
[-c|--configuration <CONFIGURATION>] [-f|--framework <FRAMEWORK>]
[--disable-build-servers]
[--force] [--interactive] [--no-dependencies] [--no-incremental]
Expand Down Expand Up @@ -84,6 +85,8 @@ The project or solution file to build. If a project or solution file isn't speci

[!INCLUDE [arch](../../../includes/cli-arch.md)]

[!INCLUDE [artifacts-path](../../../includes/cli-artifacts-path.md)]

[!INCLUDE [configuration](../../../includes/cli-configuration.md)]

[!INCLUDE [disable-build-servers](../../../includes/cli-disable-build-servers.md)]
Expand Down
5 changes: 4 additions & 1 deletion docs/core/tools/dotnet-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ ms.date: 02/14/2020
## Synopsis

```dotnetcli
dotnet clean [<PROJECT>|<SOLUTION>] [-c|--configuration <CONFIGURATION>]
dotnet clean [<PROJECT>|<SOLUTION>] [--artifacts-path <ARTIFACTS_DIR>]
[-c|--configuration <CONFIGURATION>]
[-f|--framework <FRAMEWORK>] [--interactive]
[--nologo] [-o|--output <OUTPUT_DIRECTORY>]
[-r|--runtime <RUNTIME_IDENTIFIER>] [--tl:[auto|on|off]]
Expand All @@ -35,6 +36,8 @@ The MSBuild project or solution to clean. If a project or solution file is not s

## Options

[!INCLUDE [artifacts-path](../../../includes/cli-artifacts-path.md)]

[!INCLUDE [configuration](../../../includes/cli-configuration-clean.md)]

* **`-f|--framework <FRAMEWORK>`**
Expand Down
7 changes: 5 additions & 2 deletions docs/core/tools/dotnet-pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ ms.date: 04/04/2024
## Synopsis

```dotnetcli
dotnet pack [<PROJECT>|<SOLUTION>] [-c|--configuration <CONFIGURATION>]
[--force] [--include-source] [--include-symbols] [--interactive]
dotnet pack [<PROJECT>|<SOLUTION>] [--artifacts-path <ARTIFACTS_DIR>]
[-c|--configuration <CONFIGURATION>] [--force]
[--include-source] [--include-symbols] [--interactive]
[--no-build] [--no-dependencies] [--no-restore] [--nologo]
[-o|--output <OUTPUT_DIRECTORY>] [--runtime <RUNTIME_IDENTIFIER>]
[-s|--serviceable] [--tl:[auto|on|off]] [-v|--verbosity <LEVEL>]
Expand Down Expand Up @@ -59,6 +60,8 @@ You can provide MSBuild properties to the `dotnet pack` command for the packing

## Options

[!INCLUDE [artifacts-path](../../../includes/cli-artifacts-path.md)]

[!INCLUDE [configuration](../../../includes/cli-configuration-publish-pack.md)]

- **`--force`**
Expand Down
3 changes: 3 additions & 0 deletions docs/core/tools/dotnet-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ms.date: 04/04/2024

```dotnetcli
dotnet publish [<PROJECT>|<SOLUTION>] [-a|--arch <ARCHITECTURE>]
[--artifacts-path <ARTIFACTS_DIR>]
[-c|--configuration <CONFIGURATION>] [--disable-build-servers]
[-f|--framework <FRAMEWORK>] [--force] [--interactive]
[--manifest <PATH_TO_MANIFEST_FILE>] [--no-build] [--no-dependencies]
Expand Down Expand Up @@ -125,6 +126,8 @@ For more information, see the following resources:

[!INCLUDE [arch](../../../includes/cli-arch.md)]

[!INCLUDE [artifacts-path](../../../includes/cli-artifacts-path.md)]

[!INCLUDE [configuration](../../../includes/cli-configuration-publish-pack.md)]

[!INCLUDE [disable-build-servers](../../../includes/cli-disable-build-servers.md)]
Expand Down
3 changes: 3 additions & 0 deletions docs/core/tools/dotnet-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ms.date: 03/27/2024
dotnet test [<PROJECT> | <SOLUTION> | <DIRECTORY> | <DLL> | <EXE>]
[--test-adapter-path <ADAPTER_PATH>]
[-a|--arch <ARCHITECTURE>]
[--artifacts-path <ARTIFACTS_DIR>]
[--blame]
[--blame-crash]
[--blame-crash-dump-type <DUMP_TYPE>]
Expand Down Expand Up @@ -94,6 +95,8 @@ Where `Microsoft.NET.Test.Sdk` is the test host, `xunit` is the test framework.

[!INCLUDE [arch-no-a](../../../includes/cli-arch-no-a.md)]

[!INCLUDE [artifacts-path](../../../includes/cli-artifacts-path.md)]

- **`--blame`**

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.
Expand Down
9 changes: 9 additions & 0 deletions includes/cli-artifacts-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
author: tdykstra
ms.author: tdykstra
ms.date: 26/04/2024
ms.topic: include
---
- **`--artifacts-path <ARTIFACTS_DIR>`**

All build output files from the executed command will go in subfolders under the specified path, separated by project. For more information see [Artifacts Output Layout](../docs/core/sdk/artifacts-output.md). Available since .NET 8 SDK.

0 comments on commit 3b5fccd

Please sign in to comment.