Skip to content

Commit 43da70f

Browse files
committed
Provide a little more guidance
1 parent 6f0f976 commit 43da70f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/ide/how-to-specify-build-events-csharp.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,13 @@ When you perform the previous steps, Visual Studio modifies your project file by
9090
</Target>
9191
```
9292

93-
The `Exec` element refers to the MSBuild `Exec` task. See [Exec task](../msbuild/exec-task.md).
93+
The `Exec` element refers to the MSBuild `Exec` task. You can refer to the [Exec task](../msbuild/exec-task.md) to see what other parameters you can use to customize the behavior. For example, you can set `WorkingDirectory` to set the folder from which the executable is run. The default working directory is the directory that contains the project file.
94+
95+
```xml
96+
<Exec Command="call prebuild.bat" WorkingDirectory="$(OutDir)">
97+
```
98+
99+
You can use MSBuild properties (macros), such as `OutDir` in the previous example, as discussed later in this article at [Macros](#macros).
94100

95101
## Errors and other output
96102

0 commit comments

Comments
 (0)