NAnt.exe - .NET Framework Initialization Error

Sep 13, 2007 at 11:19 PM
Edited Sep 13, 2007 at 11:20 PM
I installed Tree Surgeon on my XP machine, created a project and executed "go.bat". I got this message:

NAnt.exe - .NET Framework Initialization Error

To run this applicaiton, you first must install one of the following versions of the .NET Framework:

v2.0.40607
v1.1.4322
v1.0.3705

I have four .NET frameworks installed on this machine: 1.0.3705, 1.1.4322, 2.0.50727, and 3.0. The problem is that this old NAnt is asking for .NET Framework 2.0 Beta 1 (2.0.40607).

The solution was to download the final release of NAnt 0.85 from

http://sourceforge.net/project/showfiles.php?group_id=31650&package_id=23704&release_id=455595

then replace the "TreeSurgeon\MyProject\tools\nant" subfolder with the "nant-0.85\bin" folder. The new NAnt.exe.config shows that this version additonally supports .NET Frameworks 2.0.50215 (Beta 2) and 2.0.50727 (final). Sure enough, when I test the build by running "go.bat", everything completes successfully.

Mark
Coordinator
Oct 10, 2007 at 5:05 AM
Thanks Mark. We're trying to figure out the best way to keep the files used by TS when it generates a solution to be current as so many tools change so often.