NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

/optimize (Enable/disable Optimizations)

/optimize[+ | -]

Remarks

The /optimize option enables or disables optimizations performed by the compiler to make your output file smaller, faster, and more efficient. By default, /optimize is in effect. Specifying /optimize is the same as specifying /optimize+.

To prevent an optimized output file, specify /optimize-.

/o is the short form of /optimize.

It is possible to combine the /optimize and /debug options.

Example

Compile t2.sc and enable compiler optimizations:

csc t2.cs /optimize

See Also

C# Compiler Options