|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Set Build Properties (C#)
Using the Build Pane and the Build Events Pane of the Visual Studio Project Designer, you can specify build settings and events to control your project's build configuration and compilation. See Build Page, Project Designer (C#) and Build Events Page, Project Designer (C#) for more information.
You can set compiler options, pre-build events, and post build events from the Project Designer. See How to: Specify Build Events (C#) for more information about how to use the Project Designer to select pre-build and post-build events.
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.
To access and modify build properties
In Solution Explorer, select the project for which you want to specify the build event.
On the Project menu, click <Project Name> Properties.
Select the Build tab.
From the Configuration list, specify your configuration: Active (Debug), Debug, or Release build. By default, this option is set to Active (Debug).
Set the remaining build properties, including any advanced settings. See Advanced Build Settings Dialog Box (C#) for more information.