S3990 — Assemblies should be marked as CLS compliant

Language
C#
Type
Code smell
Severity
Major
Tags
api-design

Why is this an issue?

Assemblies should conform with the Common Language Specification (CLS) in order to be usable across programming languages. To be compliant an assembly has to indicate it with System.CLSCompliantAttribute.

Compliant solution


using System;

[assembly:CLSCompliant(true)]
namespace MyLibrary
{
}

↑ Back to top