C#


ROSLYN.DESIGN.CA1014 : Mark assemblies with CLSCompliant (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

The Common Language Specification (CLS) defines naming restrictions, data types, and rules to which assemblies must conform if they will be used across programming languages. Good design dictates that all assemblies explicitly indicate CLS compliance by using CLSCompliantAttribute . If this attribute is not present on an assembly, the assembly is not compliant.

This check corresponds to Roslyn rule CA1014. For full rule details, see the Microsoft website: CA1014.

Properties

Class Name Mark assemblies with CLSCompliant (C#)
Significance reliability
Mnemonic ROSLYN.DESIGN.CA1014
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Mark assemblies with CLSCompliant (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.