Export (0) Print
Expand All
Expand Minimize

Compiler Error CS3014

'member' cannot be marked as CLS compliant because the assembly is not marked as compliant

In a source code file where compliance with the Common Language Specification (CLS) was declined, a construct in the file was marked as being CLS compliant. This is not allowed. Remove one of the CLSCompliant specifications.

The following sample generates CS3014:

// CS3014.cs
using System;

public class I
   [CLSCompliant(true)]   // CS3014
   public void mf()

   public static void Main()

See Also

What Is the Common Language Specification

© 2014 Microsoft