Bugs item #1859708, was opened at 2007-12-28 09:37
Message generated for change (Comment added) made by onemhz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1859708&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Framework support
Group: 0.86
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Tolga Utku (tolgaonbay)
Assigned to: Gert Driesen (drieseng)
Summary: .NET Framework cannot be initialized if SDK is not installed

Initial Comment:
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

----------------------------------------------------------------------

Comment By: OneMHz (onemhz)
Date: 2008-08-05 11:22

Message:
Logged In: YES 
user_id=1132059
Originator: NO

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

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2007-12-28 10:06

Message:
Logged In: YES 
user_id=707851
Originator: NO

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!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1859708&group_id=31650

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to