Visual C++ compiler does not generate non-CLS compliance warning (309813)
The information in this article applies to:
- Microsoft .NET Framework Class Libraries 1.0
- Microsoft .NET Framework Class Libraries 1.1
- Microsoft Visual C++ 2005 Express Edition
- Microsoft Visual C++ .NET (2003)
- Microsoft Visual C++ .NET (2002)
This article was previously published under Q309813 SUMMARY The Visual C++ .NET or Visual C++ 2005 compiler allows the use of the [assembly:CLSCompliant(true)] attribute, but does not generate an error or a warning when the
assembly is exposing a class that is a type that is non-Common Language
Specification (CLS) compliant. While the compilation does succeed, this could
cause a problem when the assembly is used by another compiler that enforces CLS
compliance rules. In this version of the Visual C++ .NET or Visual C++ 2005 compiler if you apply
the attribute this causes the appropriate metadata to be emitted. However,
Visual C++ .NET or Visual C++ 2005 does not currently enforce the CLS compliance rules.
REFERENCES For more information, visit the following Microsoft Web
sites:
Modification Type: | Major | Last Reviewed: | 1/5/2006 |
---|
Keywords: | kbinfo kbNativeAttributes KB309813 kbAudDeveloper |
---|
|