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.

Note

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

  1. In Solution Explorer, select the project for which you want to specify the build event.

  2. On the Project menu, click <Project Name> Properties.

  3. Select the Build tab.

  4. From the Configuration list, specify your configuration: Active (Debug), Debug, or Release build. By default, this option is set to Active (Debug).

  5. Set the remaining build properties, including any advanced settings. See Advanced Build Settings Dialog Box (C#) for more information.

See Also

Tasks

How to: Prepare and Manage Builds

Concepts

Introduction to the Project Designer

Other Resources

Building in Visual Studio