Search code examples
c#.netxlsnpoi

Can't compile NPOI project


I'd like to use the NPOI dll in my project, so I downloaded the source code from [https://github.com/tonyqus/npoi] as there was no binary download.

I opened this solution \solution\visualstudio\NPOI.sln and compiled it,

However I get the following errors:

error

I compiled earlier releases and got the same error. Am I missing something?


Solution

  • It is very strange, but it looks like three source code files are present in archive, but not included in the project.

    So open NPOI.sln solution in Visual Studio, then go to SS -> Formula folder in Solution Explorer. Rightclick on Functions folder, select Add -> existed item in context menu, and then add these files:

    • main/SS/Formula/Functions/Code.cs
    • main/SS/Formula/Functions/Complex.cs
    • main/SS/Formula/Functions/Rept.cs

    Update: I've created pull request to tonyqus/npoi GitHub repository having these files added back to project. Request has been accepted now, so you can simply download sources from GitHub again - it will be compiled.