C# Compiler Error Codes CS3001 to CS4000

In this post, you’ll learn all the C# compiler error and warnings from the code CS3001 to CS4000.

C# Compiler Error Codes CS3001 to CS4000

Error CodeTypeError/Warning Description
CS3001WarningArgument type ‘{0}’ is not CLS-compliant
CS3002WarningReturn type of ‘{0}’ is not CLS-compliant
CS3003WarningType of ‘{0}’ is not CLS-compliant
CS3005WarningIdentifier ‘{0}’ differing only in case is not CLS-compliant
CS3006WarningOverloaded method ‘{0}’ differing only in ref or out, or in array rank, is not CLS-compliant
CS3007WarningOverloaded method ‘{0}’ differing only by unnamed array types is not CLS-compliant
CS3008WarningIdentifier ‘{0}’ is not CLS-compliant
CS3009Warning‘{0}’: base type ‘{1}’ is not CLS-compliant
CS3010Warning‘{0}’: CLS-compliant interfaces must have only CLS-compliant members
CS3011Warning‘{0}’: only CLS-compliant members can be abstract
CS3012WarningYou must specify the CLSCompliant attribute on the assembly, not the module, to enable CLS compliance checking
CS3013WarningAdded modules must be marked with the CLSCompliant attribute to match the assembly
CS3014Warning‘{0}’ cannot be marked as CLS-compliant because the assembly does not have a CLSCompliant attribute
CS3015Warning‘{0}’ has no accessible constructors which use only CLS-compliant types
CS3016WarningArrays as attribute arguments is not CLS-compliant
CS3017WarningYou cannot specify the CLSCompliant attribute on a module that differs from the CLSCompliant attribute on the assembly
CS3018Warning‘{0}’ cannot be marked as CLS-compliant because it is a member of non-CLS-compliant type ‘{1}’
CS3019WarningCLS compliance checking will not be performed on ‘{0}’ because it is not visible from outside this assembly
CS3021Warning‘{0}’ does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute
CS3022WarningCLSCompliant attribute has no meaning when applied to parameters. Try putting it on the method instead.
CS3023WarningCLSCompliant attribute has no meaning when applied to return types. Try putting it on the method instead.
CS3024WarningConstraint type ‘{0}’ is not CLS-compliant
CS3026WarningCLS-compliant field ‘{0}’ cannot be volatile
CS3027Warning‘{0}’ is not CLS-compliant because base interface ‘{1}’ is not CLS-compliant
CS3028FatalAlgorithm ‘{0}’ is not supported

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

C# Compiler Error CS0442 – ‘Property’: abstract properties cannot have private accessors Reason for the Error You’ll get this error...
This is a really simple one . Below is a simple example of an enum called “Designation” defined with the...
This blog post explain the usage of the Checked Block in .NET and how you can use them in Visual...