Setting CLS compliance for an entire .NET assembly is possible. But how is it actually done? E.g. with Visual Studio 2008?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Visual Studio adds a directive for the compiler, and the compiler checks the code for some more strict rules than in the native programming language.
You can add the CLS compliant attribute to all your project by adding the assembly level attribute
anywhere in your project, generally in the
assemblyinfo.csfile.If the line
using System;is not at the top of the file, add it. Or, use the long form: