Please make NPOI CLS-compliant

Dec 26, 2010 at 2:20 AM

It is a best practice to create CLS-compliant class libraries, where possible. NPOI follows CLS requirements, so there is no reason for it not to be CLS-compliant - can this enhancement be provided in the next release? Thanks for a great library.

1. Open AssemblyInfo.cs in the NPOI project

2. Insert the following at the top of the file:

   using System;

3. Insert the following at the end of the file:

 [assembly: CLSCompliant(true)]

4. Recompile NPOI
Coordinator
Dec 30, 2010 at 2:39 AM

I may not understand the tag well. So what will happen without this tag? Compile error?

Jan 1, 2011 at 5:18 PM

A CLS-compliant library should only refer to other CLS-compliant libraries. So if I try to make my own library CLS-compliant, I get a compiler warning when I refer to NPOI. This is unnecessary as NPOI can easily be made CLS-compliant.

Thanks.