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 CS0596

The guid attribute must be specified with the comimport attribute

The guid attribute must be present when using the comimport attribute.

The following sample generates CS0596:

namespace x
{
   [comimport] public class a   // CS0596
   // try the following line to resolve this CS0596
   // [comimport, guid("00000000-0000-0000-0000-000000000001")]
   {      
   }
   public class b
   {      
      public static void Main()
      {
      }
   }
}