You can create a new configuration in your solution (in VS) with the
output directory you want to use, then you can build that configuration
from within your Nant script.
BOb
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
She
Sent: Wednesday, December 20, 2006 4:00 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] <solution> tag - change build path
Hello Everyone,
I just started using nant in conjunction with cruisecontrol.net. The
<solution> tag has been great in helping us compile VS.NET 2003 projects
without need to write a nant build file.
My project compiles stuff into a directory like:
C:\DEV_Machine\Build_Directory <-Empty
C:\DEV_Machine\Build_Directory\Project_1 <-Project 1 Bin
files
C:\DEV_Machine\Build_Directory\Project_2 <-Project 2 Bin
files
C:\DEV_Machine\Build_Directory\Project_3 <-Project 3 Bin
files
C:\DEV_Machine\Build_Directory\Project_4 <-Project 4 Bin
files
Etc.
However, on my build server I like to output the files to:
C:\SomeOtherDir\
C:\ SomeOtherDir \Project_1
C:\ SomeOtherDir \Project_2
C:\ SomeOtherDir \Project_3
C:\ SomeOtherDir\Project_4
Etc.
I tried using the outputdir attribute in the <solution> tag, but when I
use it, all my files are dumped into the root directory specified
(c:\someotherdir). Nant doesn't seem to create the sub directories.
Here is my simple build file:
<?xml version="1.0" encoding="utf-8" ?>
<project name="MediaCenter SDK">
<property name="nant.settings.currentframework" value="net-1.1" />
<solution
configuration="debug"
solutionfile="Consoles.sln"
outputdir="..\..\Build Release\MyProjectOutputs ">
>
<assemblyfolders>
<include name="..\..\Build Release\References" />
</assemblyfolders>
</solution>
</project>
Is there any way of getting this to work with v0.85?
Any help is appreciated.
Thanks!
--
Michael She
Team Leader, Software Development
Multi-Vision Communications Inc.
P: (905) 470-8644 x254
M: (416) 816-2566
E: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
W: http://www.mvcinc.com <http://www.mvcinc.com>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users