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!

/target:library (Create a Code Library)

/target:library

Remarks

The /target:library option causes the compiler to create a DLL rather than an executable file (EXE). The DLL will be created with the .dll extension.

Unless otherwise specified with the /out option, the output file name takes the name of the first input file.

When specified at the command line, all files up to the next /out, /target:winexe, or /target:exe option are used to create the .dll.

When building a .dll, a Main method is not required.

Example

Compile in.cs, creating in.dll:

csc /target:library in.cs

See Also

/target (Specify Output File Format) | C# Compiler Options