This documentation is archived and is not being maintained.
/lib
Visual Studio 2010
Specifies assembly reference locations.
/lib:dir1[, dir2]
The /lib option specifies the location of assemblies referenced via the /reference option.
The compiler searches for assembly references that are not fully qualified in the following order:
Current working directory. This is the directory from which the compiler is invoked.
The common language runtime system directory.
Directories specified by /lib.
Directories specified by the LIB environment variable.
Use /reference to specify an assembly reference.
/lib is additive; specifying it more than once appends to any prior values.
Show: