0

I am Asposisizing a legacy app (users complained about the slowness of the code, which is in Excel Interop).

I have added a reference to Aspose.Cells.dll and added this using:

using Aspose.Cells;

...but get this compile error:

The type or namespace name 'Aspose' could not be found (are you missing a using directive or an assembly reference?)

Is it because the project's Target framework is set to ".NET Framework 2.0"?

If so, is there an older version of the Aspose.Cells.dll that I can use? Or will I need to increment the target to 4.5?

Here is what I have and what I see:

enter image description here

So is the problem a mismatch between .NET Frameworks targeted and the Aspose.Cells.dll version?

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

2 Answers2

3

Seems to be a mismatch between .NET versions. Ensure that the version of Aspose.Cells was compiled for .NET 2.0.

Otherwise you may need to find an older version of Aspose.Cells that was targeted for that.

parameter
  • 614
  • 10
  • 17
2

Your assumption is correct. The problem is a mismatch between .NET Frameworks.

Oxymoron
  • 1,380
  • 2
  • 19
  • 47