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!

/reference (Import Metadata)

/reference:file[;file2]

where:

file[;file2]
One or more files that contains an assembly manifest. To import more than one file, separate file names with either a comma or a semicolon. The compiler will look for file anywhere specified by the PATH environment variable.

Remarks

The /reference option causes the compiler to make public type information in the specified files available to the project you are currently compiling.

The file(s) you import must contain a manifest; the output file must have been compiled with one of the /target options other than /target:module.

Use /addmodule to import metadata from an output file that does not contain an assembly manifest.

/r is the short form of /reference.

Example

Compile source file input.cs and import metadata from metad1.dll and metad2.dll to produce out.exe:

csc /reference:metad1.dll;metad2.dll /out:out.exe input.cs

See Also

C# Compiler Options