Visual Studio : Altering Project Properties (C#)

from Microsoft.com

Modifying Project Properties (Visual C#) 

After you create a project, you can use the Project Designer to perform tasks such as change the name of your executable file, customize the build process, add a reference to a DLL, or strengthen the security settings. You can access the Project Designer in the Project menu by clicking Properties, or by right-clicking the Properties item in Solution Explorer. The Project Designer will appear in the editor/designer window as shown in the following illustration:

Application property page

Project properties are grouped into 10 pages in the Project Designer. The Project Designer property pages are located in the same middle pane used by the Windows Forms Designer and code editor.

NoteNote

Visual Studio Team System includes an additional property page for Code Analysis.

In the illustration above, the Application property page is displayed. By clicking on the labels on the left tab (Build, Build Events, Debug, and so on) you can access the corresponding property page. The project-specific information that is entered here is stored in a .csproj file which is not visible in Solution Explorer but is located in the project folder on the drive. While you are working in Visual C#, you can access help for any of the property pages by positioning the mouse cursor on the page and pressing F1.

The following table provides a brief description of each page in the Project Designer:

see www.microsoft.com for most up to date information on Visual Studio

Property Page Description

Application

Change the name of the assembly, the project type, assembly information including version number and other resource options. For more information, see Application Page, Project Designer (C#).

Build

Change the location in which the compiled assembly is stored, conditional compilation options, how errors and warnings are handled, and other settings. For more information, see Build Page, Project Designer (C#).

Build Events

Create and modify custom build steps. For more information, see Build Events Page, Project Designer (C#, J#).

Debug

Specify the command line arguments when running under the debugger, and other settings. For more information, see Debug Page, Project Designer.

Resources

Add strings, icons, images or other types of files to your project as resources. For more information, see Resources Page, Project Designer.

Settings

Store settings such as connection strings for a database or the color-scheme that a particular user wants to use. These settings can be retrieved dynamically at run time. For more information, see Settings Page, Project Designer.

Reference Paths

Specify the path where assemblies referenced in your project are located. For more information, see Reference Paths Page, Project Designer (C#, J#).

Signing

Specify ClickOnce certificate options, and provide strong name for your assembly. For more information, see Signing Page, Project Designer and ClickOnce Deployment Overview

Security

Specify security settings that your application requires in order to run. For more information, see Security Page, Project Designer.

Publish

Specify options for distributing your application to a web site, ftp server, or file location. For more information, see Publish Page, Project Designer.

Code Analysis (Visual Studio Team System only)

Options for tools that analyze your source code for potential security issues, adherence to .NET Framework design guidelines, and more. For more information, see Code Analysis, Project Designer.

 

© Lynne Grewe