Export (0) Print
Expand All

Application Page, Project Designer (C#)

Use the Application page of the Project Designer to specify the project's application settings and properties.

To access the Application page, select a project node in Solution Explorer, then on the Project menu, click Properties. When the Project Designer appears, click the Application tab.

General Application Settings

The following options enable you to configure general settings for the application.

Assembly name

Specifies the name of the output file that will hold the assembly manifest. Changing this property will also change the Output Name property. You can also make this change from the command line using /out (Visual Basic). To access this property programmatically, see AssemblyName.

Default namespace

Specifies the base namespace for all files in the project. For example, if you set the root namespace to Project1 and you have a Class1 outside of any namespace in your code, its namespace would be Project1.Class1. If you have a Class2 within a namespace Order in code, its namespace would be Project1.Order.Class2.

It is also possible to clear the root namespace property, which allows you to manually specify the namespace structure of your project. See Namespace Statement for more information on creating namespaces in your code.

See /rootnamespace for more information. To access this property programmatically, see RootNamespace.

Output type

Specifies the type of application to build. In a Web Application project, this property can only be set to Class Library. See /target for more information. To access this property programmatically, see OutputType.

Assembly Information

For more information, see Assembly Information Dialog Box.

Startup object

Defines the entry point to be called when the application loads; generally this is set either to the main form in your application or to the Sub Main procedure that should run when the application starts. Since class libraries do not have an entry point, their only option for this property is (None). See /main (or /main (Specify Location of Main Method) (C# Compiler Options)) for more information. To access this property programmatically, see StartupObject.

Resources

The following options enable you to configure general settings for the application.

Icon

Sets the .ico file that you want to use as your application icon. Click the ellipsis button to browse for an existing graphic, or type the name of the file you want. See /win32icon (or /win32icon (Import an .ico File) (C# Compiler Options)) for more information. To access this property programmatically, see ApplicationIcon.

Resource File

Enter a path name or use the Browse button (...) to add a Win32 resource file to the project.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft