Setting Visual C# Project Properties

Setting Visual C# Project Properties

Visual Studio .NET 2003

A project's properties specify how a project is built and debugged.

Accessing Project Properties

Visual C# property pages are only available when the project is selected in Solution Explorer; property pages are not available for individual files for a Visual C# project. However, you can access a file's properties in the Properties window.

To access project properties

  1. With a project selected in Solution Explorer, click Property Pages on the View menu.

    Notice the two folders in a Visual C# project's Property Pages dialog box: Common Properties and Configuration Properties. Only the properties in Configuration Properties can be set by project configuration.

  2. Using the Configuration drop-down list box and with the Configuration Properties folder selected, select the configuration for which you want to set this project's properties. If you have the Common Properties folder selected, the Configuration drop-down list box is unavailable.
  3. In the left pane, select a folder and property page.
  4. In the right pane, set the available properties.
  5. Click OK to save the settings. If you want a change to take effect immediately, click Apply.
    Note   Properties that are grayed are defined when the project is created; they are displayed for information only.

Properties are saved in the project's .csproj file.

For information on the Build menu in the Visual Studio environment, see Default and Custom Builds.

Getting Help on Properties

Documentation is available for each property; simply click the Help button.

See Also

Project Properties | Properties Window | Visual Basic and Visual C# Projects | C# Compiler Options

© 2016 Microsoft