Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0647

Error emitting 'attribute' attribute -- 'reason'

The following sample generates CS0647:

// CS0647.cs
using System.Runtime.InteropServices;

[Guid("z")]   // CS0647, incorrect uuid format.
// try the following line instead
// [Guid("00000000-0000-0000-0000-000000000001")]
public class MyClass
{
   public static void Main()
   {
   }
}
Show:
© 2014 Microsoft