Show/Hide Toolbars

XSharp

The -cs option directs the compiler to treat all identifiers and type names as case-sensitive.

Syntax

-cs[+|-]

Arguments

+|-Specifying +, or just -cs, directs the compiler to treat all type names as case-sensitive.

Remarks

This option is for those users who prefer a case-sensitive language.

 

This option can also affect case sensitivity of preprocessor symbols, depending on the state of the -vo8 compiler option; if -vo8 is enabled, then -cs controls if also preprocessor symbols are treated as case-sensitive; if -vo8 is disabled, then preprocessor symbols are always case-sensitive and the state of -cs does not affect this behavior of the preprocessor. See the topic about -vo8 for more information.

 

This option also does not affect keywords. Keywords in X# are always case-insensitive.

Note

If you run the shared compiler you have to pass the -cs compiler option through the commandline and not through a response file.

And when you mix case sensitive and not case sensitive projects then there will be 2 shared compiler processes running, one in case sensitive mode and the other in case insensitive mode.

To set this compiler option in the Visual Studio development environment:

 

1.Open the project's Properties page.

2.Click the Language tab.

3.In the General section, modify the Case Sensitive Type Names property in the General.

4.Click here to see the property page