Please make NPOI CLS-compliant

Dec 26, 2010 at 3: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
Dec 30, 2010 at 3:39 AM

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

Jan 1, 2011 at 6: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.