Compiler Warning (level 1) CS2002
Source file 'file' specified multiple times
A source file name was passed to the compiler more than once. You can only specify a file once to the compiler to build an output file.
This warning cannot be suppressed by the -nowarn option.
The following sample generates CS2002:
C#
// CS2002.cs
// compile with: CS2002.cs
public class A
{
public static void Main(){}
}
To generate the error, compile the example with the command line:
Console
csc CS2002.cs CS2002.cs
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: