This documentation is archived and is not being maintained.

Compiler Error CS1541

Invalid include option: 'symbol' — cannot include directories

The compiler detected an attempt to specify a directory rather than a specific file. For example, when you use the /reference compiler option, you must specify a file; it is not possible to specify a directory.

For example, the following parameter passed to the /reference compiler option would generate CS1541: