You can also use these instructions to change the default framework http://nant.sourceforge.net/faq.html#change-targetframework
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Etheridge Sent: Thursday, April 29, 2004 4:19 AM To: 'Gert Driesen'; [EMAIL PROTECTED] Subject: RE: [Nant-users] Problem following upgrade from Win2000 to XP That was it, Gert. By specifying the command line option '/k:net-1.1' I have resolved the problem. Thank you -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 12:57 PM To: Brian Etheridge; [EMAIL PROTECTED] Subject: Re: [Nant-users] Problem following upgrade from Win2000 to XP Brian, Nant 0.84 (and earlier) target the .NET Framework 1.0 by default. When you first install .NET 1.0 and then install 1.1, both 1.0 and 1.1 will be available, and NAnt 0.84 (and earlier) will target .NET 1.0. This was changed post 0.84 to use target the runtime on which NAnt is executing. see http://nant.sourceforge.net/faq.html#framework-support for more information. I suggest downloading a recent nightly build (http://nant.sourceforge.net/nightly/builds). Let me know if this fixes your problem. Thanks, Gert ----- Original Message ----- From: "Brian Etheridge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 29, 2004 12:39 PM Subject: [Nant-users] Problem following upgrade from Win2000 to XP > Hi, > My NAnt script which was working fine is now hitting a problem. > > <target name="loadTestRunnerEnvironment" > > > <solution configuration="release" > solutionfile="${test.runner.dir}\TestRunner.sln" /> > </target> > > This target is being executed on a new machine, which is running XP > Professional. The old machine was running Win2000. > > The problem I am getting is: > > ------------------------------------------------- > [solution] Starting solution build. > [solution] Building UnitTestRunner [release]... > > BUILD FAILED > > Couldn't find referenced assembly > 'c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Sy > stem.Data.dll'. > > ------------------------------------------------- > > This machine has 1.1 of the .NET Framework running, so it should not be > attempting to run the 1.0 version. The old machine had been upgraded from > 1.0 to 1.1 ages ago and has been running perfectly well. > > Clicking on the .SLN file loads up the 1.1 version of the IDE OK. > > Why is NAnt trying to load the 1.0 version? I could not find any references > to .NET versions in the NAnt product. How is the <solution> task > configured? > > Thanks > > Brian Etheridge > > Lost Wax > 1 Dee Road, Richmond, Surrey TW9 2JN > w +44 (0)20 8939 2600 | <http://www.lostwax.com/> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users