Reputation: 2170
This might sound like an obvious question but I can't seem to find the answer online.
I have an MVC solution that is made up of a few projects eg: Data project, Domain project, Service project, Web project, etc.
I am now ready to publish the solution to my web server. I know I can build each project and upload the dll's and view/content files for each project in my solution but I was wondering if there is a better(automated) way to deploy a multi project solution to the server?
The ideal solution for me would be to click on Deployment Package in Visual Studio on my Web project and for it to automatically create the files and folders required for the entire solution.
Am I missing something here or do I really need to do this following every time I want to publish to the server:
It would seem nuts to me that I'd have to jump through all those hoops every single time I wanted to publish to the server. I'm guessing that by using Web Deploy or something similar I could automate this entire process but I just can't seem to find the relevant help online.
I'm using Visual Studio 2010 Professional with Windows Server 2003/IIS6.
Thanks for the advice.
Rich
Upvotes: 2
Views: 3126
Reputation: 17540
You can FTP directly from Visual Studio using the Publish option. Just right click on the main project in the Solution Explorer and select Publish... A dialog will prompt you for the information on the FTP server the first time, fill it in, and select the Publish button. Every time you publish after that it will remember the FTP information and you just hit the Publish button. If your main project has references set up to the other projects (ex: domain, data...) the publishing process will automatically build and include the appropriate assemblies/DLLs.
Upvotes: 3