简体   繁体   中英

Visual Studio Pre-build Event/Post-build Events Working Directory

It's not clear from the documentation what the working directory is for pre-build or post-build events in Visual Studio. What is it? Where is this documented?

For future reference, to find the execution directory, you could also enter:

"start cd"

in the Pre-Build event command line area.

This will open a command prompt in the current path after saving and triggering a build.

Also, the directory will be pointing in the \\bin\\debug|release.

The working directory is the bin directory of the project.

I was unable to find documentation, but I tested this by making a post build event that made a directory. Then I checked where it was created.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM