I have VS2010, and I've opened up a web site. How c开发者_如何学运维an I now use MS Deploy to deploy to a zip file, which can be installed in a remote IIS site?
I've searched through all the menu options, but can't seem to find out where to get started.
Thanks in advance
Absolutely 100% definitely you should watch these two talks :
http://live.visitmix.com/MIX10/Sessions/FT14
http://microsoftpdc.com/Sessions/FT56?type=wmv
Ya ya I know whenever I see a link to a talk I think 'I don't have time for this', but they're both really informative and cover web transformations, deployment and TFS deployments.
Edit: If you really dont have time - then check out my similar question...
"How can I get TFS2010 to run MSDEPLOY for me through MSBUILD?"
... and if this confuses you then go back and watch the talk :-)
Updated Answer: Microsoft just released their "web deployment projects" for visual studio 2010. http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=711a2eef-b107-4784-9063-c978edc498cd#AdditionalInfo
After adding a web deployment project to your website (right click on the website name, click "add web deployment project") you can then build the package and use msdeploy to deploy your application.
Old answer: A "web site project" cannot be packaged with MSDeploy through the GUI (at least not in the RC). You must convert your website into a "Web Application Project". Then you will have the full publishing/msdeploy capabilities.
Here is a link on how to convert a website to a web application project: http://gurustop.net/blog/2008/08/03/converting-vs-2008-website-to-web-application/
Once you convert to a web application project in Solution Explorer right click on the project name and click "Build Deployment Package".
精彩评论