Previous Topic: .NET ModulesNext Topic: Compilation


Module Info File

Microsoft defines CLS as a set of language semantics that allows any .NET aware compiled language to interoperate with any other .NET aware compiled language. CA Gen-generated C# code is compiled as CLS compliant into assemblies using the assemblyinfo.cs file. For C# code to be compiled into a .NET module, a moduleinfo.cs file needs to be created and used as input to the compiler.

Create a file named moduleinfo.cs, which contains the following text:

using System; using System;
[module: CLSCompliantAttribute(true)]

There are several more module-level attributes that may be set.

Note: For more information, see the Microsoft documentation.