Yes, I tried using verbose to confirm the command line and now I'm using it
with msbuild...
I did try msbuild like this...
<property name="msbuildPath"
value="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe" />
<exec
program="${msbuildPath}"
verbose="true"
workingdir="..\Development\"
commandline="${project::get-name()}.sln /t:Rebuild
/p:Configuration=${configuration}"
/>
and that seems to work, well at least for one of the three solutions I am
trying to get to work... at least it is a step closer.
Thanks for everyone's help/suggestions. Much appreciated.
----- Original Message -----
From: Bob Archer
To: Wayne Hartell ; nant-users@lists.sourceforge.net
Sent: Friday, November 09, 2007 2:15 AM
Subject: RE: [NAnt-users] VS.Net 2005 and NAnt 0.85 - I'm going insane
withthis!!!!
Can you set the exec tag to verbose=true so you can see the exact command
line that is being used. Perhaps it is not exactly what you want or expect.
Have you tried using msbuild instead of devenv. The command line would be
pretty similar.
BOb
------------------------------------------------------------------------------
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Hartell
Sent: Thursday, November 08, 2007 10:32 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] VS.Net 2005 and NAnt 0.85 - I'm going insane
withthis!!!!
Thanks for the suggestion. I tried it...
<exec
program="${devenvPath}"
commandline="../development/${project::get-name()}.sln /rebuild
${configuration}"
/>
But I get the same problem that has been sending me crazy all day... :-(
<message level="Info"><![CDATA[Microsoft (R) Visual Studio Version
8.0.50727.762.]]></message>
<message level="Info"><![CDATA[Copyright (C) Microsoft Corp
1984-2005. All rights reserved.]]></message>
<message level="Info"><![CDATA[========== Rebuild All: 0 succeeded,
0 failed, 0 skipped ==========]]></message>
I've checked maybe 1000 times now that the command line and working directory
etc is correct, and it is. Nothing has changed other than the VS.Net version,
yet it just will not work.
Thanks anyway.
----- Original Message -----
From: Markus Ewald
To: nant-users@lists.sourceforge.net
Sent: Thursday, November 08, 2007 11:23 PM
Subject: Re: [NAnt-users] VS.Net 2005 and NAnt 0.85 - I'm going insane with
this!!!!
Wayne Hartell wrote:
Hi All,
We have beem using NAnt-0.85-rc3 for quite some time with Visual Studio
2003.NET. In our build files we have been executing builds like this:
<property name="devenvPath" value="c:\program files\microsoft visual
studio .net 2003\common7\ide\devenv.com" />
<exec
program="${devenvPath}"
workingdir="..\Development\"
commandline="/rebuild ${configuration} ${nant.project.name}.sln"
/>
[...]
The problem that I am experiencing right now, and one that is sending me
quite batty after banging my head against a wall for days is.... that the build
simply DOES NOT EXECUTE using NAnt as the entry point.
[...]
Someone please tell me how to build a VS.Net 2005 solution using NAnt. It
can't be this dang hard can it?????? Why doesn't exec work like it did for
VS.Net 2003?
My only guess would be that your argument order to devenv.com is incorrect
(but then again, you say it works manually on the command line). I'd also
double-check that your working directory isn't wrong in the end.
Here's a command that's working fine for me on at least 4 different PCs:
<echo message="Compiling Solution with Visual Studio 2005" />
<exec
program="${environment::get-variable('VS80COMNTOOLS')}..\IDE\devenv.com"
commandline="My.sln /rebuild ${build.configuration}"
/>
VS80COMNTOOLS is defined on any PC that has Visual Studio installed, so I
used it to locate devenv.com. Makes the thing work for people without telling
them to configure special environment variable or set NAnt properties.
Kind Regards,
Wayne Hartell.
-Markus-
----------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
----------------------------------------------------------------------------
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users