Web Deployment with Visual Studio Madhur Joshi Development
Web Deployment with Visual Studio Madhur Joshi Development Lead Madhur. Joshi@Microsoft. com Phone: +1 -425 -722 -3873
What is Web. Deploy? • NET 2. 0/4. 0 based core APIs • MSDeploy. exe wrapped around APIs • Service End-points for Remote deployment (Or Not) • Extensible Provider Model • Config + Content + Data • Sync/Migrate
DEMO What can Web. Deploy do? Madhur Joshi Development Lead Web Platform and Tools
Visual Studio Deployment • • Pull on Source (Dev Box/Build Server) Push on Destination (Web Server) Package/Archive MSBuild based
Config + Content + Data • IIS Settings Deployed with Web • DB Deployed using SQL Management Objects (SMO) • Can script both Schema & Data • Can generate Drop table scripts • No Incremental DB Deployment
Online Publishing • • • AKA Continuous Integration Source --> Destination (over network) IIS 6 - Remote Agent (Requires Admin) IIS 7 - WMSVC (Non-Admin Delegation) IIS 6/IIS 7 - In. Proc (uses APIs for localhost)
DEMO Publish your application Madhur Joshi Development Lead Web Platform and Tools
Offline Packaging • Source --> Zip --> Destination • Use when you don't have access to server • Zip your files, IIS Settings, Configuration, DB etc • VS 2010 generates Deploy. cmd for installation • Supports What. If Analysis • Works on IIS 6, IIS 7 and IIS 7. 5
Parameterization • • Applies at Install time (not build time) Declare using Parameters. xml (build time) Set using Set. Parameters. xml (install time) Change web. config settings with it (debug=true/false) • Change your connection string with it (dev server becomes production server)
DEMO Zip and parameterize your application Madhur Joshi Development Lead Web Platform and Tools
Team Build Integration • Supports both Packaging/Publishing • /p: Deploy. On. Build=True • /p: Deploy. Target=Ms. Deploy. Publish/Packa ge • /p: Ms. Deploy. Publish. Method=In. Proc/WMS VC/Remote. Agent • /p: Create. Package. On. Publish=True
More Info • Mother of all Links (courtesy Vishal Joshi) – http: //bit. ly/21 na. YV • IIS. NET Download – http: //www. iis. net/download/Web. Deploy • MSDN Documentation – http: //msdn. microsoft. com/enus/library/bb 386521. aspx • Tech. Net Documentation – http: //technet. microsoft. com/enus/library/dd 568996%28 WS. 10%29. aspx
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U. S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
- Slides: 13