#661 .NET Framework cannot be initialized if SDK is not installed

0.86
closed-fixed
5
2014-08-25
2007-12-28
Tolga Utku
No

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

Discussion

  • Gert Driesen

    Gert Driesen - 2007-12-28

    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!

     
  • Gert Driesen

    Gert Driesen - 2007-12-28
    • labels: 361162 --> Framework support
    • assigned_to: nobody --> drieseng
    • summary: Failed to initialize the 'Microsoft .NET Framework 2.0' --> .NET Framework cannot be initialized if SDK is not installed
    • status: open --> closed-fixed
     
  • OneMHz

    OneMHz - 2008-08-05

    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

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks