[NAnt-users] how to publish or output to a directory with msbuild task
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=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] how to publish or output to a directory with msbuildtask
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=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] how to publish or output to a directory with msbuildtask
ok. So, by default Output path is set to bin\ folder and the solution is doing the build on say Release configuration. By setting output path to some folder other then say bin\, will it copy all .aspx etc.. for web application. Basically I am looking for what publishing a site does from MSBUILD. I want to then take all that content and zip it up so that I can do a OnceClick deployment. Also, what does web deployment project will give me and the benefits of using it with Web Application type of projects(not web site). I can use xcopy but I want to avoid having to worry about excluding .cs file and the others that I dont want on my web server. On Thu, Sep 4, 2008 at 10:09 AM, Bob Archer [EMAIL PROTECTED] wrote: 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=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] how to publish or output to a directory withmsbuildtask
Have you created a Web Deployment Project for your web site? The most effective method for deploying web site project via Nant is to first create a web deployment project, set the output path in that project file. Then after you have built your project, you can use all the other Nant tasks to operate on that output. We use this technique regularly for automated deployment of built and integrated web sites for testing and production deployment. Ken Parrish Gomez, Inc. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of spatemp spatemp Sent: Thursday, September 04, 2008 3:07 PM To: Bob Archer Cc: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] how to publish or output to a directory withmsbuildtask ok. So, by default Output path is set to bin\ folder and the solution is doing the build on say Release configuration. By setting output path to some folder other then say bin\, will it copy all .aspx etc.. for web application. Basically I am looking for what publishing a site does from MSBUILD. I want to then take all that content and zip it up so that I can do a OnceClick deployment. Also, what does web deployment project will give me and the benefits of using it with Web Application type of projects(not web site). I can use xcopy but I want to avoid having to worry about excluding .cs file and the others that I dont want on my web server. On Thu, Sep 4, 2008 at 10:09 AM, Bob Archer [EMAIL PROTECTED] wrote: 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=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] how to publish or output to a directory with msbuildtask
See answers inline below. From: spatemp spatemp [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 3:07 PM To: Bob Archer Cc: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] how to publish or output to a directory with msbuildtask ok. So, by default Output path is set to bin\ folder and the solution is doing the build on say Release configuration. By setting output path to some folder other then say bin\, will it copy all .aspx etc.. for web application. [Bob Archer] No, it will only copy the binaries (DLLs) to that folder. You would still need to copy the .aspx files yourself. Basically I am looking for what publishing a site does from MSBUILD. I want to then take all that content and zip it up so that I can do a OnceClick deployment. [Bob Archer] If you can do it from the command line in MSBUILD than you should be able to do it with nant calling msbuild. I have never used MSBUILD to do this though. See below on zipping it. Also, what does web deployment project will give me and the benefits of using it with Web Application type of projects(not web site). [Bob Archer] It will copy the .aspx files to a deployment location. It also lets you edit the web.config if say for example you want to change from a dev connection string to a staging/test connection string. See this blog post http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx . I have to admit I have never done this, I just use a nant task to copy the .aspx files to the deployment directory. I can use xcopy but I want to avoid having to worry about excluding .cs file and the others that I dont want on my web server. [Bob Archer] Probably easier to just include the files you do want. Here is the fileset I use though... (notice I exclude web.config because we deal with that another way.) copy todir=${outputPath} fileset basedir=${assemblyInfoPath} exclude name=**/obj/** / exclude name=**/My Project/** / exclude name=**/*.sln / exclude name=**/*.cs / exclude name=**/*.vb / exclude name=**/*.resx / exclude name=**/*.csproj* / exclude name=**/*.vbproj* / exclude name=**/*.resources / exclude name=**/*.plsk / exclude name=**/*.vsdisco / exclude name=web.config / include name=** / /fileset /copy You could even use this file set right in a ZIP task so you don't need to copy somewhere and then zip after a copy. Hope this helps, BOb On Thu, Sep 4, 2008 at 10:09 AM, Bob Archer [EMAIL PROTECTED] wrote: 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
[NAnt-users] Directory different task or tool ...
Does anyone know if there is a directory differencing task available for Nant? I have tried several external directory difference tools, but so far, none have the level of control that a typical Nant command has such as file and directory exclusions/inclusions. I need such a tool to compute change lists and logs for deployment runtime images. Sometimes, I can generate such a list using the facilities in my source code control tools. However, there are some occasions when that option is not available and I need a more general purpose mechanism. The output that I am hoping to generate would be a list of full file paths with each file or directory marked with 'added', 'deleted', 'modified' or 'same'. I tried a tool called CSDiff.exe, but it has no facilities for specifying directories to exclude. This is a huge problem when navigating Subversion working directories with all of it's .svn control directories. Thanks, Ken Parrish Gomez, Inc. - 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=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users