'class': cannot resolve attribute usage 'usage'
The first parameter to the attribute attribute must specify where the attribute will be valid.
The following sample generates C3726:
#using <mscorlib.dll> using namespace System; [attribute("MyAt")] // try the following line instead // [attribute(All)] __gc class MyAttr { public: MyAttr() { } }; // C3726 void main() { }