Reputation: 18955
I'd like to upload (via ftp) a website when doing a release build in visual studio 2008. I don't want any source code files to be uploaded and it would be nice to configure which folders should get uploaded. I'm using either ASP.NET Web Applications or MVC. How do I configure VS.NET to automatically upload (and overwrite) the last deployed website?
Upvotes: 5
Views: 2132
Reputation: 18955
Well, it turns out the simplest way to do this is to use the "Publish" functionality built into VS.NET.
Right click on the project and click Publish. It will build and deploy the project for you. It obviously isn't as customizable as using MSBuild or Nant but it does have some options:
I've used this feature before but I somehow thought it was only available for "Web Site" projects.
Upvotes: 1
Reputation: 55072
disclaimer: I wrote this
I use something I wrote, dashy: http://www.mirios.com.au/dashy
But don't use it lightly, because you need to have:
Feel free to give it a crack, but, at the current time, I don't recommend it for anything critical.
Upvotes: 0
Reputation: 44322
This question is kind of old but I would suggest that you use MSDeploy for this. If you want you can also use WDP to do the ASP.NET compilation and merge for you. The great thing about MSDeploy is that you can install the MSDeploy Remote Agent Service on the target machine. Then when you perform the sync it will determine which files are out of date and only send those files. Therefore saving you time and bandwidth. Also you can perform transformations as your are deploying the site. It is easy to deploy to many different servers as well. I have a video online about MSDeploy, more info on that at http://sedodream.com/2009/10/27/MSDeployPresentationMaterials.aspx.
Upvotes: 0
Nant have no ftp task. Here I find, most convinient, very light, beaty solution. Strange why no ports of it to nant.
Upvotes: 0
Reputation: 23226
You can use the Visual Studio Web Deployment Project Add In from Microsoft.
I use this with MSBuild as part of CruiseControl, its very nice, and with some of the Community Tasks for MS Build you can do *.config (or any XML file) substitutions as part of your build process.
Edit: I also see that the MSBuild Community Tasks includes an FtpUpload action. This should be exactly what you need.
Upvotes: 3