Ram, part of the difficulty you're having is that you're equating MSBuild to
the Nant Solution Task, when the correct analogy is to the Nant engine
itself. In that sense, of course there wouldn't be a property on the MSBuild
task for an output directory, just like there isn't a attribute on the on
the Nant task that allows you to reference a child .build file. However, The
Nant task, however, does allow you to set property values to be utilized
when running the child .build file, but you have to know the name/purpose of
the properties used in the child file. The same is true for a VS2005
.csproj/.vbproj, because those are MSBuild input files and if you understand
the name/purpose of properties in those files, you've got a lot of
flexibility.

Second, changing references is something the solution task is going to do
custom, and you're not going to find anything like that in msbuild (which
again makes sense).

I decided not to wait until the Nant team came up with something (this is
not a dig at them, I'm more than grateful for everything they've done, I
simply couldn't wait and besides, I've already written 8-10 other custom
tasks of my own, what's one more). I basically wrote a <msbuild-solution>
which wraps around the msbuild task, supplies attributes which are fed as
property settors to msbuild, and takes in a list of projects to create a
temporary solution file to send to msbuild. I also change the csproj/msproj
files to adjust file references as needed, and turn file references into
project references if the file is an output of a project in the list. This
last piece is necessary to get msbuild to build in the proper dependency
order.
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, October 13, 2006 3:10 PM
To: nant-developers@lists.sourceforge.net
Subject: nant-developers Digest, Vol 5, Issue 7

Send nant-developers mailing list submissions to
        nant-developers@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/nant-developers
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of nant-developers digest..."


Today's Topics:

   1. Re: Building VS2005 projects using NANT 8.5 rc4 (Martin Aliger)


----------------------------------------------------------------------

Message: 1
Date: Fri, 13 Oct 2006 09:57:32 +0200
From: "Martin Aliger" <[EMAIL PROTECTED]>
Subject: Re: [nant-dev] Building VS2005 projects using NANT 8.5 rc4
To: <nant-developers@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Hi,
 
new solution task, which we work on, will solve all mentioned issues
(hopefully). If you want to test the code, there'll be nightlies avaiable
just after 0.85 RTM is out.
 
regarding asp.net application: there is new web site project, which is not
the project compilable by NAnt. In fact, those project haven't be compiled
at all :-). Then there is web application model, which is normal csproj
(vbproj) and is completely compatible with NAnt (or msbuild or whatever).
You could find more info about it around web.
 

         
  Ing. Martin  <mailto:[EMAIL PROTECTED]> Aliger
<http://www.gordic.cz/>  <http://www.gordic.cz/> GORDIC spol. s r.o. 
         
GORDIC spol. s. r.o., Erbenova 4, 586 01 JIHLAVA
Tel: 567 309 136, 567 303 601


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ramprakash Gopinathan
Sent: Wednesday, October 11, 2006 10:38 PM
To: Gary Feldman; nant-developers@lists.sourceforge.net
Subject: Re: [nant-dev] Building VS2005 projects using NANT 8.5 rc4



thanks for the response, I had looked at using msbuild task from nant
contrib, msbuild task basically works on project file, there is no solution
build concept in msbuild which makes it hard.
The other thing is solution task in nant allows you to specify output
directory were the compiled assemblies should be outputted and also
configuration (debug/release or what ever), solution tasks also allows you
to specify assembly folder, which means referenced assemblies could be in a
completely different folder on build server as is the case with us because
we compile all assemblies into one folder "bin" and we copy them into
application bin directory as last step of the build

msbuild task does not allow you to specify an output directory or
config(debug/release), there is also no way to specify reference paths, i
guess some of the project file settings could be set through xmlpeek task
since the project file is an xml file. 
 
The other issue is how do you automate asp.net application builds using
nant, since asp.net apps are not compiled into a dll anymore (dynamic
compilation). 

Thanks,
<Ram/>




  _____  


> Date: Wed, 11 Oct 2006 15:07:51 -0400
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [nant-dev] Building VS2005 projects using NANT 8.5 rc4
> 
> Ramprakash Gopinathan wrote:
> >  
> > Is building vs2005 projects supported? Document says framework 2.0 
> > is supported.
> > I'm getting a project guid not found error when i build my vs2005 
> > project using nant 8.5 rc4
> You can use the msbuild task in NAntContrib to build vs2005 projects.  
> The NAnt solution task won't work.
> 
> Gary
> 



-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://sourceforge.net/mailarchive/forum.php?forum=nant-developers/attachmen
ts/20061013/c27e33c0/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2632 bytes
Desc: not available
Url :
http://sourceforge.net/mailarchive/forum.php?forum=nant-developers/attachmen
ts/20061013/c27e33c0/attachment.gif 

------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

------------------------------

_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


End of nant-developers Digest, Vol 5, Issue 7
*********************************************


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to