Export (0) Print
Expand All

Build, Configuration Properties, <Projectname> Property Pages Dialog Box

Visual Studio .NET 2003

The Build property page in the Configuration Properties folder contains the following properties:

Code Generation Group

Conditional Compilation Constants
Specifies symbols on which to perform conditional compilation. Separate symbols with a space. See /define for more information.

See DefineConstants Property for information on how to programmatically access this property.

Optimize code
Enable or disable optimizations performed by the compiler to make your output file smaller, faster, and more efficient. See /optimize for more information.

See Optimize Property for information on how to programmatically access this property.

Check for Arithmetic Overflow/Underflow
Check all integer arithmetic for out-of-bounds results. See /checked for more information.

See CheckForOverflowUnderflow Property for information on how to programmatically access this property.

Allow Unsafe Code Blocks
Enable use of the unsafe keyword. See /unsafe for more information.

See AllowUnsafeBlocks Property for information on how to programmatically access this property.

Errors and Warnings Group

Warning Level
Specifies the level to display for compiler warnings. See /warn for more information.

See WarningLevel Property for information on how to programmatically access this property.

Treat Warnings As Errors
Treat all warnings as errors. See /warnaserror for more information.

See TreatWarningsAsErrors Property for information on how to programmatically access this property.

Suppress Specific Warnings
Blocks the compiler's ability to generate one or more warnings. Separate multiple warning numbers with a comma. See /nowarn for more information.

See NoWarn for information on how to programmatically access this property.

Outputs Group

Output Path
Specifies the location of the output files for this project's configuration.

See OutputPath Property for information on how to programmatically access this property.

XML Documentation File
Specifies the name of a file into which documentation comments will be processed. See /doc for more information.

See DocumentationFile Property for information on how to programmatically access this property.

Generate Debugging Information
Generate debugging information and place it in the output file(s). See /debug for more information.

See DebugSymbols Property for information on how to programmatically access this property.

Register for COM Interop
Indicates that your managed application will expose a COM object (a COM-callable wrapper) that allows a COM object to interact with your managed application. The Output Type property of this application must be Class Library in order for the Register for COM Interop property to be available. For more information, see General, Common Properties, <Projectname> Property Pages Dialog Box.

In order for the COM object to be exposed, your class library assembly must also have a strong name. See the AssemblyInfo.cs file in Solution Explorer for a way to specify a strong name for your assembly.

For an example class that you might include in your C# application that would be exposed as a COM object, see Example COM Class.

For information on how to programmatically access the Register for COM Interop property, see RegisterForComInterop Property.

For information on how to access the Build property page in the Configuration Properties folder, see Setting Visual C# Project Properties.

Smart Device Developer Notes

Suppress Specific Warnings and Register for COM Interop

Not supported.

See Also

Setting Visual C# Project Properties

Show:
© 2015 Microsoft