Skip to content

Commit 31278b0

Browse files
authored
move project-solution-file arguments to an include file
1 parent a2ef142 commit 31278b0

File tree

5 files changed

+18
-36
lines changed

5 files changed

+18
-36
lines changed

docs/core/tools/dotnet-build.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,7 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
7575

7676
## Arguments
7777

78-
`PROJECT | SOLUTION | FILE`
79-
80-
The project or solution or C# (file-based app) file to build. If a file isn't specified, MSBuild searches the current directory for a project or solution.
81-
82-
- `PROJECT` is the path and filename of a C#, F#, or Visual Basic project file, or the path to a directory that contains a C#, F#, or Visual Basic project file.
83-
84-
- `SOLUTION` is the path and filename of a solution file (*.sln* or *.slnx* extension), or the path to a directory that contains a solution file.
85-
86-
- `FILE` is an argument added in .NET 10. The path and filename of a file-based app. File-based apps are contained within a single file that is built and run without a corresponding project (`*.csproj`) file. For more information, see [Build file-based C# programs](/dotnet/csharp/fundamentals/tutorials/file-based-programs).
78+
[!INCLUDE [arguments-project-solution-file](../../../includes/cli-arguments-project-solution-file.md)]
8779

8880
## Options
8981

docs/core/tools/dotnet-clean.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@ The `dotnet clean` command cleans the output of the previous build. It's impleme
3030

3131
## Arguments
3232

33-
`PROJECT | SOLUTION | FILE`
34-
35-
The project or solution or C# (file-based app) file to clean. If a file isn't specified, MSBuild searches the current directory for a project or solution.
36-
37-
- `PROJECT` is the path and filename of a C#, F#, or Visual Basic project file, or the path to a directory that contains a C#, F#, or Visual Basic project file.
38-
39-
- `SOLUTION` is the path and filename of a solution file (*.sln* or *.slnx* extension), or the path to a directory that contains a solution file.
40-
41-
- `FILE` is an argument added in .NET 10. The path and filename of a file-based app. File-based apps are contained within a single file that is built and run without a corresponding project (`*.csproj`) file. For more information, see [Build file-based C# apps](/dotnet/csharp/fundamentals/tutorials/file-based-programs).
33+
[!INCLUDE [arguments-project-solution-file](../../../includes/cli-arguments-project-solution-file.md)]
4234

4335
## Options
4436

docs/core/tools/dotnet-publish.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,7 @@ For more information, see the following resources:
114114

115115
## Arguments
116116

117-
`PROJECT | SOLUTION | FILE`
118-
119-
The project or solution or C# (file-based program) file to publish. If a file isn't specified, MSBuild searches the current directory for a project or solution.
120-
121-
- `PROJECT` is the path and filename of a C#, F#, or Visual Basic project file, or the path to a directory that contains a C#, F#, or Visual Basic project file.
122-
123-
- `SOLUTION` is the path and filename of a solution file (*.sln* or *.slnx* extension), or the path to a directory that contains a solution file.
124-
125-
- `FILE` is an argument added in .NET 10. The path and filename of a file-based app. File-based apps are contained within a single file that is built and run without a corresponding project (`*.csproj`) file. For more information, see [Build file-based C# apps](/dotnet/csharp/fundamentals/tutorials/file-based-programs).
117+
[!INCLUDE [arguments-project-solution-file](../../../includes/cli-arguments-project-solution-file.md)]
126118

127119
## Options
128120

docs/core/tools/dotnet-restore.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,7 @@ There are three specific settings that `dotnet restore` ignores:
8686

8787
## Arguments
8888

89-
`PROJECT | SOLUTION | FILE`
90-
91-
The project or solution or C# (file-based app) file to restore. If a file isn't specified, MSBuild searches the current directory for a project or solution.
92-
93-
- `PROJECT` is the path and filename of a C#, F#, or Visual Basic project file, or the path to a directory that contains a C#, F#, or Visual Basic project file. If the directory is not specified, it defaults to the current directory.
94-
95-
- `SOLUTION` is the path and filename of a solution file (*.sln* or *.slnx* extension), or the path to a directory that contains a solution file. If the directory is not specified, it defaults to the current directory.
96-
97-
- `FILE` is an argument added in .NET 10. The path and filename of a file-based app. File-based apps are contained within a single file that is built and run without a corresponding project (`*.csproj`) file. For more information, see [Build file-based C# apps](/dotnet/csharp/fundamentals/tutorials/file-based-programs).
89+
[!INCLUDE [arguments-project-solution-file](../../../includes/cli-arguments-project-solution-file.md)]
9890

9991
## Options
10092

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
ms.date: 09/25/2025
3+
ms.topic: include
4+
---
5+
6+
`PROJECT | SOLUTION | FILE`
7+
8+
The project or solution or C# (file-based app) file to clean. If a file isn't specified, MSBuild searches the current directory for a project or solution.
9+
10+
- `PROJECT` is the path and filename of a C#, F#, or Visual Basic project file, or the path to a directory that contains a C#, F#, or Visual Basic project file.
11+
12+
- `SOLUTION` is the path and filename of a solution file (*.sln* or *.slnx* extension), or the path to a directory that contains a solution file.
13+
14+
- `FILE` is an argument added in .NET 10. The path and filename of a file-based app. File-based apps are contained within a single file that is built and run without a corresponding project (*.csproj*) file. For more information, see [Build file-based C# apps](/dotnet/csharp/fundamentals/tutorials/file-based-programs).

0 commit comments

Comments
 (0)