Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

C# Compiler Options

The compiler produces executable (.exe) files, dynamic-link libraries (.dll), or code modules (.netmodule).

Every compiler option is available in two forms: -option and /option. The documentation only shows the /option form.

In Visual Web Developer 2008, you set compiler options in the web.config file. For more information, see <compiler> Element.

Command-line Building With csc.exe

Information about building a Visual C# application from the command line.

How to: Set Environment Variables

Provides steps for running vsvars32.bat to enable command-line builds.

Deployment of C# Applications

Describes options for deploying C# applications.

C# Compiler Options Listed by Category

A categorical listing of the compiler options.

C# Compiler Options Listed Alphabetically

An alphabetical listing of the compiler options.

Compiler Errors

A reference to the errors generated by the C# compiler.

How to: Set Build Properties (C#).

Setting properties that govern how your project is compiled, built, and debugged. Includes information about custom build steps in Visual C# projects.

Default and Custom Builds

Information on build types and configurations.

Preparing and Managing Builds

Procedures for building within the Visual Studio development environment.

Community Additions

© 2015 Microsoft