From the MSN documentation;
"By default, /CLRUNMANAGEDCOD ECHECK is in effect, which means
SuppressUnmanag edCodeSecurityA ttribute is applied to linker-generated
PInvoke calls. Specify /CLRUNMANAGEDCOD ECHECK:NO to not apply this
attribute."
But it seems it's just the opposite (which sounds more logical). By default
no SuppressUnmanag edCodeSecurityA ttribute is applied to the C++ interop
calls. And /CLRUNMANAGEDCOD ECHECK:NO must be specified to apply the
attribute.
There is also a "bug" in Visual Studio. If you specify
AllowPartiallyT rustedCallers attribute, you must explicitly set the
/CLRUNMANAGEDCOD ECHECK[:NO] switch, but there is no way to set it as
/CLRUNMANAGEDCOD ECHECK:NO.
Can
"By default, /CLRUNMANAGEDCOD ECHECK is in effect, which means
SuppressUnmanag edCodeSecurityA ttribute is applied to linker-generated
PInvoke calls. Specify /CLRUNMANAGEDCOD ECHECK:NO to not apply this
attribute."
But it seems it's just the opposite (which sounds more logical). By default
no SuppressUnmanag edCodeSecurityA ttribute is applied to the C++ interop
calls. And /CLRUNMANAGEDCOD ECHECK:NO must be specified to apply the
attribute.
There is also a "bug" in Visual Studio. If you specify
AllowPartiallyT rustedCallers attribute, you must explicitly set the
/CLRUNMANAGEDCOD ECHECK[:NO] switch, but there is no way to set it as
/CLRUNMANAGEDCOD ECHECK:NO.
Can
Comment