Vs2010and Ne Tframework

373
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
373
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • ESTIMATED TIME:45 minutes
  • 06/11/09 09:20 2008 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.<number>
  • 06/11/09 09:20 2008 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.<number>
  • Vs2010and Ne Tframework

    1. 1. Visual Studio 2010 and .NET Framework 4 Training Workshop
    2. 2. Presentation Outline (hidden slide): Technical Level: 300 Intended Audience: Developers & Architects Objectives (what do you want the audience to take away): Understand Web Deployment improvements coming to Visual Studio 2010 Presentation Outline: Review configuration in ASP.NET and IIS Transforming settings in web.config Packaging applications for deployment Deploying packages to IIS Once-click Deployment
    3. 3. Web Deployment With Visual Studio 2010 Name Title Organization Email
    4. 4. Agenda • Review configuration in ASP.NET and IIS • Transforming settings in web.config • Packaging applications for deployment • Deploying packages to IIS • Once-click Deployment
    5. 5. ASP.NET and IIS Configuration Configuration stored in XML files validated by a schema. Schema describes configuration settings for IIS, ASP.NET and 3rd party applications. Validation Central configuration file for the server contains system wide configuration settings. Distributed configuration files contain overrides and local site and application settings.
    6. 6. Review configuration in ASP.NET and IIS
    7. 7. Web Deployment Today Multiple environments including Development, Testing, Staging and Production Must manage settings for each environment Difficult to keep environments consistent Applications often need to be deployed by someone else Need to package code, data, application settings and environment configuration for easier deployment
    8. 8. What are the components, settings, etc you have to deploy with your web application?
    9. 9. Managing Settings Need consistent configuration with customizations across deployment environments Having multiple web.config files introduces inconsistencies Web.config transformations allows one master web.config with specific customizations for target environments
    10. 10. How it Transformation Works Web. Web. <appSettings> <add key=quot;EnvironmentNamequot; value=quot;Stagingquot; config Staging. xdt:Transform=quot;SetAttributes(value)quot; xdt:Locator=quot;Match(key)quot; /> config </appSettings> <connectionStrings> <add name=quot;LoggingConnectionStringquot; connectionString=“connectionquot; providerName=quot;System.Data.SqlClientquot; xdt:Transform=quot;Replacequot; xdt:Locator=quot;Match(name)quot; /> </connectionStrings> Deployed Visual Studio Web. Transformation config
    11. 11. Web.Config Transformation Transform Description xdt:Transform=“Replace” Replaces the first matched node xdt:Transform=“Remove” Removes the first matched node xdt:Transform=“RemoveAll” Removes all the matching nodes xdt:Transform=“Insert” Inserts the node at the end xdt:Transform=“SetAttributes(attributeNames)” Creates or changes values of the existing attributes xdt:Transform=“RemoveAttributes(attributeNames)” Removes the attributes if they exist xdt:Transform=“InsertBefore(XPath)” Inserts the node on the provided Xpath xdt:Transform=“InsertAfter(XPath)” Inserts the node on the provided XPath
    12. 12. Web.Config Transformation Locators Locator Description xdt:Locator=“Match(attributeName)” Can accept comma seperated names of the attributes xdt:Locator=“Condition(xPath Predicate)” Can take any Xpath predicates like xdt:Locator=quot;Condition(@name=’Northwind’ or @providerName=’ System.Data.SqlClient’)quot; xdt:Locator=“Xpath(/configuration/…)” Can take any complicated Xpath like quot;XPath(//system.web)quot;
    13. 13. MS Deploy Synchronize, Migrate, Deploy Works with IIS 6.0 and IIS 7.0 Analyze the destination environment Do a –whatif Analysis before committing operation Includes a service for deploying applications remotely Integration Integrated with Powershell Integrated in Visual Studio 2010 Compatible with Web Platform Installer
    14. 14. Integration with Visual Studio 2010
    15. 15. One-click Deployment Leverages everything we’ve seen so far Wraps multiple steps into a single click
    16. 16. Making Deployment Easier
    1. Gostou de algum slide específico?

      Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

    ×