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 CS0640

Cannot set assembly global attributes when not generating an assembly

A source code file cannot contain assembly global attributes if it will be compiled with /target:module.

The following sample generates CS0640:

using System;
using System.Interop;

[assembly : AttrClass()]   // CS0640
class AttrClass : Attribute {
}

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