Bugs item #1986551, was opened at 2008-06-06 16:49 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1986551&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: Core Group: 0.86 Status: Open Resolution: None Priority: 5 Private: No Submitted By: tomthorne (tomthorne) Assigned to: Nobody/Anonymous (nobody) Summary: Fails when target net-3.5 with NET SDK 3.5 installed (No VS) Initial Comment: 0.86-beta1 If you try and target the net-3.5 framework on a PC with _ONLY_ - Net Framework 3.5 - Windows Server 2008 and Net Framework 3.5 SDK installed, you get an exception here: System.NullReferenceException: Object reference not set to an instance of an object. NAnt.Core.dll!NAnt.Core.FrameworkInfo.Version.get() Line 177 + 0x25 bytes C# NAnt.Core.dll!NAnt.Core.Project.UpdateTargetFrameworkProperties() Line 1442 + 0x22 bytes C# NAnt.Core.dll!NAnt.Core.Project.TargetFramework.set(NAnt.Core.FrameworkInfo value = {NAnt.Core.FrameworkInfo}) Line 470 + 0x7 bytes C# NAnt.Core.dll!NAnt.Core.Tasks.PropertyTask.ExecuteTask() Line 189 + 0x38 bytes C# NAnt.Core.dll!NAnt.Core.Task.Execute() Line 178 + 0xb bytes C# NAnt.Core.dll!NAnt.Core.Project.InitializeProjectDocument(System.Xml.XmlDocument doc = {Document}) Line 1344 + 0xa bytes C# NAnt.Core.dll!NAnt.Core.Project.Execute() Line 853 + 0x16 bytes C# NAnt.Core.dll!NAnt.Core.Project.Run() Line 947 + 0x8 bytes C# NAnt.Core.dll!NAnt.Core.ConsoleDriver.Main(string[] args = {Dimensions:[0]}) Line 194 + 0xa bytes C# and Nant exits. This is because the 3.5 SDK registry key has changed. To fix, amend the Nant config file 3.5 framework configuration project node to try 2 locations for sdkInstallRoot: <readregistry property="sdkInstallRoot" key="SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.1\WinSDKNetFxTools\InstallationFolder" hive="LocalMachine" failonerror="false" /> <readregistry property="sdkInstallRoot" key="SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A\WinSDKNetFxTools\InstallationFolder" hive="LocalMachine" failonerror="false" unless="${property::exists('sdkInstallRoot')}" /> ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2008-06-06 17:50 Message: Logged In: YES user_id=707851 Originator: NO This is gonna become impossible to manage, if MS changes the key with each release. I'll look into this later. Can you try using the latest nightly build to see if you still get the NullReferenceException? Thx! Gert ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1986551&group_id=31650 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers