I think the easiest way to do this is to set up a build configuration in
your solution that specifies where you want the output to go to.
Other than that you can just use the copy task after the msbuild task to
move your files.
You may also want to look at creating a web deployment project in your
solution which I think MSBuild will run.
As I said, several options here.
BOb
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of spatemp
spatemp
Sent: Thursday, September 04, 2008 7:43 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] how to publish or output to a directory with
msbuildtask
I need to modify my nant scripts to publish or output web application to
a directory. So, currently we have following in the nant scrpit:
<
msbuild project="${Solution.Filename}" >
<
property name="Configuration" value="${Solution.BuildConfiguration}" />
<
property name="Platform" value="Any CPU" />
</
msbuild>
What I would like to do is create an output directory under each project
and let MSBUILD task also publish or output it ot that directory. Then
later on I can package that directory via zip and deploy it to various
servers. It would be nice if it could have built in
${ProjectDir}\output or something like that.
Any help would be appricated. Thanks.
by the way I tried following inside msbuild and it seems to publish
console projects etc.. but not Web Application type of project. It
gives me some error about non publishable project or something.
<
arg value="/t:publish" />
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users