PC Review


Reply
Thread Tools Rate Thread

Anyone here use Nant? <solution> tag help

 
 
Spam Catcher
Guest
Posts: n/a
 
      20th Dec 2006
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!
 
Reply With Quote
 
 
 
 
Michael Nemtsev
Guest
Posts: n/a
 
      21st Dec 2006
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

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) Michelangel


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone here use Nant? <solution> tag help Spam Catcher Microsoft VB .NET 1 21st Dec 2006 10:54 AM
Nant with .net 2.0 without solution task DaTurk Microsoft C# .NET 2 27th Aug 2006 10:30 PM
NAnt for .net 2.0 sireesha.parvatham@gmail.com Microsoft ASP .NET 1 27th Apr 2006 04:47 PM
NANT for ASP.NET 2.0 prabhupr@hotmail.com Microsoft ASP .NET 2 23rd Nov 2005 09:51 PM
Anyone using NAnt george r smith Microsoft C# .NET 2 23rd Jul 2003 06:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:28 PM.