Compiler Error CS1541
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error CS1541

Invalid reference option: 'symbol' — cannot reference 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, passing /reference:c:\ to the compiler would generate CS1541.

Show:
© 2016 Microsoft