Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

Csc.exe — C# compiler

Synopsis

csc [options] files

Description

Compiles C# sources and incorporates resource files and separately compiled modules. Also allows you to specify conditional compilation options, XML documentation, and path information.

Examples

csc foo.cs /r:bar.dll /win32res:foo.res
csc foo.cs /debug /define:TEMP

Options

/?, /help

Displays usage information and exits.

@ file

Specifies a response file containing arguments to csc.

/addmodule:file1 [; file2 ...]

Imports metadata from one or more named modules (files with the extension .netmodule). To create a module, use /target:module.

/baseaddress:addr

Specifies the base address at which to load DLLs.

/bugreport:file

Generates a text file that contains a bug report. Use this to report a bug in csc.exe.

/checked[+|-]

If you specify /checked+, the runtime throws an exception when an integer operation results in a value outside the range of the associated data type. This only affects code that has not been wrapped in a checked or unchecked block of code. If you specify /checked-, an exception is not thrown.

/codepage:id

Specifies the code page to use for all source files.

/d[efine]:symbol1 [; symbol2 ...]

Specify one or more symbols to define. This has the same effect as the #define preprocessor directive.

/debug[+|-]

Enables or disables debugging information. You may specify /debug instead of /debug+. The default is /debug-.

/debug:(full|pdbonly)

Specifies the debug modes that are supported by the generated assembly. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard

Publisher Resources

ISBN: 0596005261Catalog PageErrata