I am looking for the most straight forward way to automate the deploy of an MVC 3 application. There is a wealth of information on Stack Overflow already, but much of it seems to be old, and I am not sure what is still relevant to MVC 3.
Here is what I am trying to achieve:
- Publish MVC application
- Zip files
- Copy zip to remote location
It is the “Publish” part of this I am having the most trouble with. Here are my main points of confusion:
- How can an automated build be initiated for an MVC 3 app? Do we need to use the AspNetComiler MSBuild Task? I have seen an example of this uses in conjunction with a CSC Task. Are both really needed?
- There is a “Build Deployment Package” option in Visual Studio. Can this be initiated with MSBuild? Should this be used instead?
- Web Deployment Projects: where do these fit into the picture?
Thanks for any help