Bugs item #2005430, was opened at 2008-06-29 00:50
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2005430&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: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: DSDon (dsdon)
Assigned to: Gert Driesen (drieseng)
Summary: Fails when target net-3.5 (No NET SDK 3.5 and No VS)

Initial Comment:
Running on Windows Server 2003. Visual Studio 2008 and .Net 3.5 SDK are not 
installed. The .Net 3.5 Framework is installed. Previously running .85 
targeting .Net 2.0 without problems. Installed .86 Beta 1 and got the following 
error:

-----------------
nant -t:net-3.5
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/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 
framework.

    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 
again in debug mode.

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

I ended up removing the sdkDirectory attribute from the net-2.0 and net-3.5 
framework elements in the NAnt.exe.config file:

sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" 

We don't use the sdk in our build so this seems to be working OK for us. If 
there is a better solution, please let me know.

Thanks


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

>Comment By: Gert Driesen (drieseng)
Date: 2009-01-10 19:48

Message:
In the current nightly builds I've introduced a breaking change for the
<script> task:
http://nant.sourceforge.net/nightly/latest/releasenotes.html

In your case, you'll need to explicitly import the
System.Collections.Specialized namespace and add a reference to the
System.dll assembly.

I've clearly documented this as a breaking change, but I don't want to
break too many build scripts. Would this introduce lots of rework for you?

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

Comment By: DSDon (dsdon)
Date: 2008-07-01 04:55

Message:
Logged In: YES 
user_id=2130555
Originator: YES

Hi Gert. I re-opened in case you missed my last comment. I had a problem
using the nightly build. Thanks.

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

Comment By: DSDon (dsdon)
Date: 2008-06-29 14:40

Message:
Logged In: YES 
user_id=2130555
Originator: YES

Hi and thanks for the quick response. 

I tried the nightly build and got the following error. Part of the output
is shown below:

nant -t:net-3.5
NAnt 0.86 (Build 0.86.3075.0; nightly; 6/2/2008)
Target framework: Microsoft .NET Framework 3.5
Target(s) specified: go

   [script] Scanning assembly "yqg6yyuf" for extensions.

BUILD FAILED

Compilation failed:
 : error CS0234: The type or namespace name 'Specialized' does not exist
in the
namespace 'System.Collections' (are you missing an assembly reference?)
//------------------------------------------------------------------------------

// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1433
//
//     Changes to this file may cause incorrect behavior and will be lost
if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------


using NAnt.Core;
using NAnt.Core.Attributes;
using System;
using System.Collections;
using System.IO;
using System.Text;

[FunctionSet("svn", "svn")]
public class nante0928b2bf1434a3db490997a1e01a59c :
NAnt.Core.FunctionSetBase {


 public static System.Collections.Specialized.ListDictionary
SvnInfo(string path
, string username, string password)
 {
           System.Diagnostics.ProcessStartInfo psi = new
System.Diagnostics.Proc
essStartInfo(@"svn.exe");
           psi.Arguments = @"info """ + path + @""" --username " +
username + "
--password " + password + " --no-auth-cache --non-interactive";
           psi.RedirectStandardOutput = true;
           psi.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Hidden;
           psi.UseShellExecute = false;
           System.Diagnostics.Process svnInfo;

[Remainder of code removed]


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

Comment By: Gert Driesen (drieseng)
Date: 2008-06-29 10:32

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

This issue was fixed since. Please try using the latest nightly build, or
wait for the next beta.

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

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

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to