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
@@ -77,9 +77,9 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
77
77
78
78
## Arguments
79
79
80
-
`PROJECT | SOLUTION`
80
+
`PROJECT | SOLUTION | FILE`
81
81
82
-
The project or solution fileto build. If a project or solution file isn't specified, MSBuild searches the current working directory for a file that has a file extension that ends in either *proj*or *sln* and uses that file.
82
+
The project or solution or C# (file-based program) file to build. If a file isn't specified, MSBuild searches the current directory for a project or solution.
83
83
84
84
## Options
85
85
@@ -176,6 +176,12 @@ The project or solution file to build. If a project or solution file isn't speci
176
176
dotnet build
177
177
```
178
178
179
+
- Build a specific project file:
180
+
181
+
```dotnetcli
182
+
dotnet build MyProject.cs
183
+
```
184
+
179
185
- Build a project and its dependencies using Release configuration:
0 commit comments