'function' : この関数は managed としてコンパイルできません。#pragma unmanaged を使用してください
指示によっては、外側の関数の MSIL をコンパイラが生成できないようになります。
次の例では C2711 が生成されます。
// C2711.cpp
// compile with: /clr
// processor: x86
using namespace System;
value struct V {
static const t = 10;
};
void bar() {
V::t;
__asm int 3 // C2711 inline asm can't be compiled managed
}