NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS3012

You cannot specify CLSCompliant attribute on modules

In order for a module to be compliant with the Common Language Subset (CLS), via [module:System.CLCSompliant(true)], it must be built with the /target:module compiler option.

The following sample, when built without /target:module, generates CS3012:

[module:System.CLSCompliant(true)]

public class C {
   public static void Main() {
   }
}