Compiler Error C3453
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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.
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 {};
Show: