468,252 Members | 1,460 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,252 developers. It's quick & easy.

Anyone here use Nant? <solution> tag help

Hello Everyone,

I just started using nant in conjunction with cruisecontrol.net. The
<solutiontag 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 <solutiontag, 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!
Dec 20 '06 #1
1 1541
Hello Spam,

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

SCI just started using nant in conjunction with cruisecontrol.net. The
SC<solutiontag has been great in helping us compile VS.NET 2003
SCprojects 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
Dec 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mike Blanchard | last post: by
1 post views Thread by ibe | last post: by
5 posts views Thread by ibe | last post: by
1 post views Thread by Spam Catcher | last post: by
13 posts views Thread by Ruediger | last post: by
33 posts views Thread by insirawali | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.