Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1040
Preprocessor directives must appear as the first non-whitespace character on a line