Home All Groups Group Topic Archive Search About

Anyone here use Nant? <solution> tag help

Author
20 Dec 2006 9:07 PM
Spam Catcher
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!

Author
21 Dec 2006 10:54 AM
Michael Nemtsev
Hello Spam,

Have u tried to use NAntContrib "slingshot" to convert VS solution to Nant
build file?
Read there http://objectsharp.com/cs/blogs/barry/archive/2003/11/13/193.aspx

SC> I just started using nant in conjunction with cruisecontrol.net. The
SC> <solution> tag has been great in helping us compile VS.NET 2003
SC> projects without need to write a nant build file.
SC>
---
WBR,
Michael  Nemtseva [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo