0

i'm creating a ControlAddIn for Navision 2009R2 in c# with Visual Studio 2010. There I have to use the .NET 3.5 Framework because Navision can't use higher versions of the .NET framwork.

The problem is that I have a dll which is based on .NET Framework 4.5. If i reference it i become over 50 warnings and can't use the dll.

Does anybody have a solution for this?

Alex Peck
  • 4,603
  • 1
  • 33
  • 37
Teddy
  • 3
  • 4
  • You have to draw the obvious conclusion from "can't use higher versions". That means that you can't use it. – Hans Passant Feb 13 '13 at 15:29
  • 1
    But it can't. There are references to the wrong version of the .Net framework (and the CLR is even the wrong version). You have three choices. Write your own version of the dll, find an old version of the dll that is written for .Net 3.5 (2.0 CLR) or upgrade to NAV 2013 (supports .Net 4.5 (4.0 CLR)). – Jason Down Apr 05 '13 at 13:53

1 Answers1

0

If you created the dll yourself. Open your project in visual studio, click on properties of your project.

In the application tab, set your framework to 3.5, and build your project.

You should be able to use the dll now.

Ruben
  • 134
  • 8