Harish Aspnet Deployment

20

description

 

Transcript of Harish Aspnet Deployment

Page 1: Harish Aspnet Deployment
Page 2: Harish Aspnet Deployment

Easing ASP.NET Deployment with VS 2010

Harish RanganathanApplication Platform EvangelistMicrosoft India

Page 3: Harish Aspnet Deployment

Gaze into the future of web deploymentPackage web applicationsPrepare your web.config files for prime timeShare web apps with peers and communityEnable continuous integration for web applications

We are here today to…

Page 4: Harish Aspnet Deployment

Server Dev Box

Web Deployment Story - Today

Web Application

Copy WebPublish Web

Page 5: Harish Aspnet Deployment

Web Deployment w/ VS10

Dev Environment Server Environment

MS DEPLOY

Page 6: Harish Aspnet Deployment

Web Packagingdemo

Page 7: Harish Aspnet Deployment

Remote Server

Local Server

Data Flow Diagram

Pckg Install Command

Dev Box

Pckg Install Command

Page 8: Harish Aspnet Deployment

Web Publishing Pipeline (WPP)

•Collects Required Files for packaging/publishing

Collection•Changes your app to make it server

ready

Transformation

•Outputs your web to desired location e.g. FTP, File System, MSDeploy

Output

Page 9: Harish Aspnet Deployment

Web Publishing Pipeline (WPP)

BuildCollection:

O/P Binaries + PDBs

Collection:References

Collection:Content

Transformation: Web.Config

Transformation:Exclude Files

Transformation:Pre-Compile

Transformation:Merge

Output:FTP, FS,

MSDeploy, HTTP

MSDeploy:GAC, COM,

Registry

MSDeploy:IIS Settings, Certificates

MSDeploy:DB (Data,

Schema, Scripts)

MSDeploy:Create Manifest

MSDeploy:Package

MSDeploy:Publish

Page 10: Harish Aspnet Deployment

Web Publishingdemo

Page 11: Harish Aspnet Deployment

Make it SimpleDon’t Duplicate Web.Config(If I don’t want to )

Honor Build Configurations Make it Powerful Make it Extensible Make it Customizable

Asks…

Page 12: Harish Aspnet Deployment

Web Config Transformation

Web.Staging.Config

XML Transformation Engine

(Staging Ready)

Outputted to OBJ\staging folder of your project

Page 13: Harish Aspnet Deployment

Transformation Concepts

Web.Staging.Config

XML Transformation Engine

(Staging Ready)

Page 14: Harish Aspnet Deployment

Web.Config Transofrmationdemo

Page 15: Harish Aspnet Deployment

1-Click Web Deploymentdemo

Page 16: Harish Aspnet Deployment

Web.Config Transformation Recap

Locator Descriptionxdt:Locator=“Match(attributeName)” Can accept comma seperated names

of the attributes

Xdt:Locator=“Condition(xPath Predicate)”

Can take any Xpath predicates like xdt:Locator="Condition(@name=’Northwind or @providerName=’ System.Data.SqlClient’)"

Xdt:Locator=“Xpath(/configuration/…)” Can take any complicated Xpath like "XPath(//system.web)"

Page 17: Harish Aspnet Deployment

धन्यवादઆભાર ধন্যবাদ

ਧੰਨਵਾਦ

ଧନ୍ୟବାଦ

நன்றி

ధన్యవాదాలు ಧನ್ಯವಾದಗಳು

നിങ്ങള്‍‌ക്ക് നന്ദി

Page 18: Harish Aspnet Deployment

question & answer

Page 19: Harish Aspnet Deployment

Track Resources

http://blogs.msdn.com/webdevtools

http://vishaljoshi.blogspot.com

http://blogs.msdn.com/msdeploy

http://geekswithblogs.net/ranganh

Page 20: Harish Aspnet Deployment

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.