Search code examples
visual-studiobuildpost-build-eventworking-directorypre-build-event

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?


Solution

  • 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.