Skip to content

Commit 494f39a

Browse files
authored
Grammar and clarifications and use long form for options (#16735)
1 parent e912209 commit 494f39a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/core/tools/dotnet-msbuild.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ ms.date: 12/03/2018
1919

2020
The `dotnet msbuild` command allows access to a fully functional MSBuild.
2121

22-
The command has the exact same capabilities as the existing MSBuild command-line client for SDK-style project only. The options are all the same. For more information about the available options, see the [MSBuild Command-Line Reference](/visualstudio/msbuild/msbuild-command-line-reference).
22+
The command has the exact same capabilities as the existing MSBuild command-line client for SDK-style projects only. The options are all the same. For more information about the available options, see the [MSBuild command-line reference](/visualstudio/msbuild/msbuild-command-line-reference).
2323

24-
The [dotnet build](dotnet-build.md) command is equivalent to `dotnet msbuild -restore -target:Build`. `dotnet build` is more commonly used for building projects, but `dotnet msbuild` gives you more control. For example, if you have a specific target you want to run (without running the build target), you probably want to use `dotnet msbuild`.
24+
The [dotnet build](dotnet-build.md) command is equivalent to `dotnet msbuild -restore -target:Build`. [dotnet build](dotnet-build.md) is more commonly used for building projects, but because it always runs the build target, you can use `dotnet msbuild` when you don't want to build the project. For example, if you have a specific target you want to run without building the project, use `dotnet msbuild` and specify the target.
2525

2626
## Examples
2727

@@ -34,17 +34,17 @@ The [dotnet build](dotnet-build.md) command is equivalent to `dotnet msbuild -re
3434
* Build a project and its dependencies using Release configuration:
3535

3636
```dotnetcli
37-
dotnet msbuild -p:Configuration=Release
37+
dotnet msbuild -property:Configuration=Release
3838
```
3939

4040
* Run the publish target and publish for the `osx.10.11-x64` RID:
4141

4242
```dotnetcli
43-
dotnet msbuild -t:Publish -p:RuntimeIdentifiers=osx.10.11-x64
43+
dotnet msbuild -target:Publish -property:RuntimeIdentifiers=osx.10.11-x64
4444
```
4545

4646
* See the whole project with all targets included by the SDK:
4747

4848
```dotnetcli
49-
dotnet msbuild -pp
49+
dotnet msbuild -preprocess
5050
```

0 commit comments

Comments
 (0)