Share

NAnt - A .NET Build Tool

Tracker: Bugs

5 .NET Framework cannot be initialized if SDK is not installed - ID: 1859708
Last Update: Comment added ( onemhz )

I installed the NAnt-0.86-beta1 to try on a MS Windows XP box. And build my
project succesfully. Then i installed it on my server running MS Windows
2003 Standard Edition to use with CruiseControl.NET. But when i tried to
build the same project it gave an error as follows:

======================================================
NAnt 0.86 (Build 0.86.2898.0; beta1; 08.12.2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net


BUILD FAILED

Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target
framewo
rk.

Property evaluation failed.
Expression: ${path::combine(sdkInstallRoot, 'bin')}
^^^^^^^^^^^^^^

Property 'sdkInstallRoot' has not been set.

For more information regarding the cause of the build failure, run the
build aga
in in debug mode.

Try 'nant -help' for more information
======================================================

The same version of NAnt(0.86-beta1) is not working on server but it is
working on my desktop computer. Then i installed NAnt-0.85 on my server and
the project is succesfully build.

Keep up the good work


Tolga Utku ( tolgaonbay ) - 2007-12-28 14:37

5

Closed

Fixed

Gert Driesen

Framework support

0.86

Public


Comments ( 2 )

Date: 2008-08-05 16:22
Sender: onemhz


I'm getting this error running on Windows Server 2003 (SP2). I have .net
framework versions 1.0, 1.1, 2.0, 3.0 and 3.5 installed. I ran nant with
the -debug switch to see if it could point to an error in my setup or
.build file. Here's what I got.

Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target
framewo
rk.:
NAnt.Core.BuildException: Failed to initialize the 'Microsoft .NET
Framework 2.0' (net-2.0) target framework. ---> Property evaluation
failed.
Expression: ${path::combine(sdkInstallRoot, 'bin')}
^^^^^^^^^^^^^^:
NAnt.Core.BuildException: Property evaluation failed.
Expression: ${path::combine(sdkInstallRoot, 'bin')}
^^^^^^^^^^^^^^ ---> Property 'sdkInstallRoot'
has not been set.:
NAnt.Core.BuildException: Property 'sdkInstallRoot' has not been set.
at NAnt.Core.ExpressionEvaluator.GetPropertyValue(String propertyName)
at NAnt.Core.ExpressionEvaluator.EvaluateProperty(String propertyName)
at NAnt.Core.ExpressionEvalBase.ParseValue()
--- End of inner exception stack trace ---
at NAnt.Core.PropertyDictionary.EvaluateEmbeddedExpressions(String
input, Loc
ation location, Hashtable state, Stack visiting)
at NAnt.Core.FrameworkInfo.PerformInit()
at NAnt.Core.FrameworkInfo.Init()
--- End of inner exception stack trace ---
at NAnt.Core.FrameworkInfo.Init()
at NAnt.Core.FrameworkInfo.Validate()
at NAnt.Core.ProjectSettingsLoader.ConfigureRuntimeFramework()
at NAnt.Core.ProjectSettingsLoader.ProcessPlatform(XmlNode
platformNode)
at NAnt.Core.ProjectSettingsLoader.ProcessSettings()
at NAnt.Core.Project.CtorHelper(XmlDocument doc, Level threshold, Int32
inden
tLevel, Optimizations optimization)
at NAnt.Core.Project..ctor(String uriOrFilePath, Level threshold, Int32
inden
tLevel)
at NAnt.Core.ConsoleDriver.Main(String[] args)

Try 'nant -help' for more information


Date: 2007-12-28 15:06
Sender: driesengProject AdminAccepting Donations


This regression was recently discovered and is fixed in CVS. You probably
do not have the .NET Framework SDK 2.0 installed on your server.

The fix is available in the latest nighlty build
(http://nant.sourceforge.net/nightly/latest/), and will be part of the next
beta release.

Please reopen this bug report if you can still reproduce this issue with
the latest nightly build.

Thanks for the report!


Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Open 2007-12-28 15:06 drieseng
resolution_id None 2007-12-28 15:06 drieseng
category_id Core 2007-12-28 15:06 drieseng
assigned_to nobody 2007-12-28 15:06 drieseng
summary Failed to initialize the 'Microsoft .NET Framework 2.0' 2007-12-28 15:06 drieseng
close_date - 2007-12-28 15:06 drieseng