How to: Change the Build Output Directory
For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.
You can specify the location of output on a per-configuration basis (for debug, release, or both) generated by your project.
If you have a Setup project see the note at the end of this article.
On the menu bar, choose Project, Appname Properties. You can also right-click the project node in the Solution Explorer and select Properties.
In the configuration drop-down at the top, choose the configuration whose output file location you want to change (debug, release, or all).
In a Setup Project, the Output file name box changes only the location of the Setup.exe file, not the location of the project files. For more information, see Build, Configuration Properties, Deployment Project Properties Dialog Box.