
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 by using /out (Set Output File Name) (C# Compiler Options). To access this property programmatically, see AssemblyName.
- Default namespace
Specifies the base namespace for files added to the project.
It is also possible to clear the root namespace property, which enables you to manually specify the namespace structure of your project. See namespace (C# Reference) for more information about creating namespaces in your code.
To access this property programmatically, see RootNamespace.
- Target Framework
Specifies the .NET Framework version that the application targets. This option can have the following values:
.NET Framework 2.0
.NET Framework 3.0
.NET Framework 3.5
The default setting is .NET Framework 3.5.
Note: |
|---|
The prerequisite packages listed in the
Prerequisites Dialog Box are set automatically the first time that you open the dialog box. If you subsequently change the project's target framework, you will have to select the prerequisites manually to match the new target framework.
|
For more information, see How to: Target a Specific .NET Framework and .NET Framework Multi-Targeting Overview.
- Client-only Framework subset
Specifies that the application targets the .NET Framework Client Profile, which provides a redistribution package that installs the minimum set of client assemblies on target computers, without requiring that the full .NET Framework be present. For more information, see .NET Framework Client Profile.
- Output type
Specifies the type of application to build. The options are as follows:
Windows Application
Console Application
Class Library
In a Web Application project, this property can be set only to Class Library. See /target (Specify Output File Format) (C# Compiler Options) for more information.
In a WPF Browser Application project, this option is disabled.
To access this property programmatically, see OutputType.
- Assembly Information
Clicking this button displays the 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 Main procedure that should run when the application starts. Because class libraries do not have an entry point, their only option for this property is (Not Set).
By default, in a WPF Browser Application project, this option is (Not set). The other option is Projectname.App. In this kind of project, you have to set the startup URI to load a UI resource when the application starts. To do this, open the Application.xaml file in your project and set the StartupUri property to a .xaml file in your project, such as Window1.xaml. For a list of acceptable root elements, see StartupUri. You also have to define a public static void Main() method in a class in the project. This class will appear in the Startup object list as ProjectName.ClassName. You can then select the class as the startup object.
See /main (Specify Location of Main Method) (C# Compiler Options) for more information. To access this property programmatically, see StartupObject.