Edit

Share via


Compiler Error C3453

'attribute': attribute not applied because qualifier 'assembly' did not match

Assembly or module level attributes can only be specified as stand-alone instructions.

Example

The following sample generates C3453.

// C3453.cpp
// compile with: /clr /c
[assembly:System::CLSCompliant(true)]   // C3453
// try the following line instead
// [assembly:System::CLSCompliant(true)];
ref class X {};