Compiler Warning (level 1) CS1694
Invalid filename specified for preprocessor directive. Filename is too long or not a valid filename.
This warning occurs when using the #pragma checksum
preprocessor directive. The file name specified is longer than 256 characters. To resolve this warning, use a shorter file name.
The following sample generates CS1694.
C#
// cs1694.cs
#pragma checksum "MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890MyFile1234567890.txt" {00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F} // CS1694
class MyClass {}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: