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
Copy file name to clipboardExpand all lines: docs/msbuild/how-to-build-the-same-source-files-with-different-options.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ When you build projects, you frequently compile the same components with differe
21
21
22
22
## Use properties to control build settings
23
23
24
-
The `Property` element defines a variable that has multiple references in a project file. The variable might identify the location of a temporary directory, or set the values for properties used in several configurations, such as a Debug or Release build. For more information about properties, see [MSBuild properties](msbuild-properties.md).
24
+
The `Property` element defines a variable that has multiple references in a project file. The variable might identify the location of a temporary directory, or set the values for properties used in several configurations, such as Debug and Release builds. For more information about properties, see [MSBuild properties](msbuild-properties.md).
25
25
26
26
You can use properties to change the configuration of your build without having to change the project file. The `Condition` attribute of the `Property` and `PropertyGroup` elements allows you to change the value of properties.
27
27
@@ -80,13 +80,13 @@ For more information, see [Use environment variables in a build](how-to-use-envi
80
80
81
81
The following example demonstrates a project file that defines two property groups to build a Debug or Release version of the project.
82
82
83
-
- To build the Debug version, use the `-property` (`-p`) switch with the `flavor` property value to `debug`:
83
+
- To build the Debug version, use the `-property` (`-p`) switch with the `flavor` property value set to `debug`:
84
84
85
85
```cmd
86
86
msbuild consolehwcs1.proj -p:flavor=debug
87
87
```
88
88
89
-
- To build the Release version, use the `-property` (`-p`) switch with the `flavor` property value to `retail`:
89
+
- To build the Release version, use the `-property` (`-p`) switch with the `flavor` property value set to `retail`:
0 commit comments