I T Mentors V S2008 Onramp240 V1


Published on

Deck from presentation on October 11 in Irvine, CA

Published in: Business, Technology
  • Be the first to comment

  • Be the first to like this

I T Mentors V S2008 Onramp240 V1

  1. 1. Visual Studio 2008 OnRamp240 Fundamentals of Visual Studio 2008 Rich Web Applications Next-Generation Windows Applications Office Client Applications and VSTO Lynn Langit – MSDN Developer Evangelist http://blogs.msdn.com/SoCalDevGal
  2. 2. Visual Studio 2008 Vision Developer Productivity Next Generation Applications Team Collaboration
  3. 3. <ul><li>Language advances </li></ul><ul><ul><li>.NET Framework multi-targeting support </li></ul></ul><ul><ul><li>Improved Data & Language integration in VB / C# </li></ul></ul><ul><li>Improvements for Web Developers </li></ul><ul><ul><li>HTML / CSS designer enhancements </li></ul></ul><ul><ul><li>JavaScript Intellisense and debugging support </li></ul></ul>Developer Productivity
  4. 4. <ul><li>Integrating the database professional </li></ul><ul><li>Extensions to Unit Testing </li></ul><ul><li>Load Testing for the Enterprise </li></ul><ul><li>New performance tuning and diagnostic tools </li></ul>Team Collaboration Architect Tester Project Manager Database Professional Developer Designer
  5. 5. <ul><li>Best tool set for Windows Server 2008, Windows Vista & Microsoft Office 2007, SQL Server 2008 </li></ul><ul><ul><li>.NET Framework 3.5 design surfaces </li></ul></ul><ul><ul><li>Office 2007 support including ClickOnce and VSTO </li></ul></ul><ul><li>Improvements for Web Developers </li></ul><ul><ul><li>Integrated AJAX and Silverlight support </li></ul></ul><ul><ul><li>Improved JavaScript support (Intellisense and debugging) </li></ul></ul>Support for the Latest Platforms
  6. 6. What is the .NET Framework 3.5? .NET Framework 3.5 .NET Framework 3.0 .NET Framework 2.0
  7. 7. .NET Framework Timeline Nov 2006 Dec 2006 Fall 2007 Nov 2005 .NET Framework 2.0 Visual Studio 2005
  8. 8. Architects Developers Testers Project Managers Hobbyists Enthusiasts Students Database Edition Development Edition Architecture Edition Test Edition Team Foundation Server
  9. 9. The Ultimate User Experience with Visual Studio 2008 Application Platform Reliable, Usable, Desirable, Adaptable Rich Reach Browser + AJAX Browser + Silverlight Windows Vista + WPF
  10. 10. Rapid Application Development with Visual Studio 2008
  11. 11. LINQ: Smoother Data Handling Database Objects XML C# VB .NET Others…
  12. 12. Multi-Targeting Support <ul><li>Choose which Framework version to target </li></ul><ul><ul><li>.NET Framework 2.0 (“Visual Studio 2005”) </li></ul></ul><ul><ul><li>.NET Framework 3.0 (“Windows Vista”) </li></ul></ul><ul><ul><li>.NET Framework 3.5 (“Visual Studio 2008”) </li></ul></ul><ul><li>Visual Studio enables only features available in target Framework </li></ul><ul><ul><li>Toolbox, Project types, References, Intellisense, … </li></ul></ul><ul><li>Makes it easy to upgrade to Visual Studio 2008 </li></ul><ul><ul><li>Move existing Visual Studio 2005 applications to .NET Framework 3.5 gradually </li></ul></ul>
  13. 13. Using Visual Studio 2008 multi-targeting to simplify development across different versions of the .NET platform
  14. 14. Rich Web Applications Web Page Authoring ASP.NET AJAX Silverlight IIS 7 Windows Live Services
  15. 15. Expressive and standards-compliant Better developer/designer collaboration Secure, scalable platform
  16. 16. Windows Server 2008 App Platform Management The Fundamentals Security Core Integrated Hypervisor .NET 3.0 IIS 7 WS-Management Monitoring Transactions Recovery Storage Networking Server Roles
  17. 17. Windows Server 2008 Features for Developers <ul><li>Application Server </li></ul><ul><ul><li>.NET Framework 3.0 </li></ul></ul><ul><ul><li>IIS 7 </li></ul></ul><ul><ul><li>Windows Activation Service </li></ul></ul><ul><li>Management </li></ul><ul><ul><li>PowerShell </li></ul></ul><ul><ul><li>MMC 3.0 </li></ul></ul><ul><li>Transactions </li></ul><ul><ul><li>Transactional NTFS and Registry </li></ul></ul>
  18. 18. Internet Information Services (IIS) 7 <ul><li>IIS 7.0 </li></ul><ul><ul><li>Designed for modularity </li></ul></ul><ul><ul><li>Provides an extensibility architecture for hosting content </li></ul></ul><ul><li>IIS7 Modules </li></ul><ul><ul><li>Both Native and Managed are supported </li></ul></ul><ul><ul><li>Managed modules can be applied to all requests, not just ASP.NET </li></ul></ul><ul><li>IIS7 Administration </li></ul><ul><ul><li>Provides comprehensive Managed API </li></ul></ul><ul><ul><li>Resides in Microsoft.Web.Administration namespace </li></ul></ul>
  19. 19. Web Development Enhancements <ul><li>Javascript Intellisense & Debugging </li></ul><ul><li>Richer HTML/CSS Designer Support </li></ul><ul><ul><li>Split View (simultaneous source and designer) </li></ul></ul><ul><ul><li>CSS Properties, Manage/Apply Styles windows, and direct style application toolbar </li></ul></ul><ul><ul><li>Improved CSS/HTML layout and visualization in designer </li></ul></ul>
  20. 20. ASP.NET Development Enhancements <ul><li>Nested Master Page preview in designer </li></ul><ul><li>New Web data controls: </li></ul><ul><ul><li>LinqDataSource, ListView, DataPager </li></ul></ul><ul><li>LINQ support </li></ul><ul><li>Return of Web Projects </li></ul>
  21. 21. ASP.NET AJAX Integration <ul><li>ASP.NET AJAX templates in Web projects </li></ul><ul><li>JavaScript and ASP.NET AJAX Intellisense (in both pages and JS files) </li></ul><ul><ul><li>Type inference, DOM support, enhanced function and parameter tooltips </li></ul></ul><ul><ul><li>Intellisense against “referenced” script libraries in pages and JS files </li></ul></ul><ul><li>Script Debugging Improvements </li></ul><ul><ul><li>Breakpoints in design-time code automatically map to runtime code </li></ul></ul><ul><ul><li>Switch between design-time/runtime code in Solution Explorer while debugging </li></ul></ul><ul><ul><li>Improved debug watch information for script and DOM objects </li></ul></ul>
  22. 22. Improving Web developer productivity with new design tools and ASP.NET AJAX Integration
  23. 23. Additional Web Enhancements <ul><li>Microsoft Silverlight </li></ul><ul><ul><li>Silverlight extensions </li></ul></ul><ul><ul><li>Intellisense and code generation for XAML </li></ul></ul><ul><ul><li>Debugging support </li></ul></ul><ul><li>Windows Live Services </li></ul>
  24. 24. Silverlight Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation of media experiences and rich interactive applications (RIAs) for the Web.
  25. 25. Windows Live APIs Rich Media Experiences Sharing & Storage Communicate & Stay Connected Find & Locate Identity & Authentication Training & Support Service Level Agreements Flexible Monetization Offerings Flexible Monetization Options Platform Silverlight Streaming Live Spaces Virtual Earth LiveID Live Contacts Search Agents Alerts IM & Presence Service APIs & Controls
  26. 26. Language INtegrated Query (LINQ) <ul><li>Integrated, native query syntax in C# and VB </li></ul><ul><ul><li>Interact with data as objects </li></ul></ul><ul><li>Reduce the complexity when working with data </li></ul><ul><ul><li>Consistent API for object collections, XML, SQL data </li></ul></ul><ul><li>Benefits </li></ul><ul><ul><li>Work with data in a consistent way, regardless of the type of data </li></ul></ul><ul><ul><li>Better integration with programming languages </li></ul></ul><ul><ul><li>Improved productivity through IntelliSense in Visual Studio </li></ul></ul>
  27. 27. LINQ to SQL Accessing data today Queries in quotes Loosely bound arguments Loosely typed result sets No compile time checks
  28. 28. LINQ to SQL Accessing data with LINQ Classes describe data Tables are like collections Strongly typed connections Integrated query syntax Strongly typed results
  29. 29. LINQ to SQL LINQ Architecture from c in db.Customers where c.City == &quot;London&quot; select c.CompanyName LINQ Query SQL Query SELECT CompanyName FROM Cust WHERE City = 'London' Rows Objects SubmitChanges() DML or SProcs db.Customers.Add(c1); c2.City = “Seattle&quot;; db.Customers.Remove(c3); INSERT INTO Cust … UPDATE Cust … DELETE FROM Cust … SQL Server Application LINQ to SQL
  30. 30. Improving developer productivity with Language Integrated Query (LINQ) and SQL Server data
  31. 31. Next-Generation Windows Applications Smart Client Development Windows Presentation Foundation Windows Forms/WPF Interoperability Windows Communication Foundation & Windows Workflow Integration
  32. 32. Improvements for Smart Client Development <ul><li>Integrated UI designer experience </li></ul><ul><li>Improved ClickOnce application deployment </li></ul><ul><li>Office 2007 UI for native C++ applications </li></ul><ul><li>Client Application-Level Services </li></ul>
  33. 33. Windows Presentation Foundation <ul><li>Deliver Innovative User Interfaces </li></ul><ul><li>Increase Developer-Designer Productivity </li></ul><ul><li>Leveraging Existing Code Base and Skills Set </li></ul><ul><li>A productive, unified approach to UI, media and documents to deliver unmatched UX </li></ul>
  34. 34. Windows Presentation Foundation Visual Studio 2008 Enhancements <ul><li>Visual Studio Designer for WPF </li></ul><ul><ul><li>Creates a seamless designer/developer workflow with Expression Blend </li></ul></ul><ul><li>XAML-based editing directly in the IDE </li></ul><ul><ul><li>Changes reflected in the designer in real time </li></ul></ul><ul><ul><li>Intellisense based on a XAML language service </li></ul></ul><ul><li>Control extensibility </li></ul><ul><li>Project templates, debugger & deployment support </li></ul><ul><li>Side-by-side support for WinForms </li></ul><ul><li>ClickOnce deployment support for WPF apps </li></ul>
  35. 35. Designers design <ul><ul><li>With XAML designers & developers can streamline their collaboration </li></ul></ul>Developers add business logic
  36. 36. <ul><li>Visual Studio 2008 supports &quot;bi-directional&quot; integration of WPF and Windows Forms </li></ul><ul><ul><li>Windows Forms applications hosting WPF </li></ul></ul><ul><ul><li>WPF hosting Windows Forms controls </li></ul></ul><ul><li>Benefits </li></ul><ul><ul><li>Bring WPF functionality to existing applications </li></ul></ul><ul><ul><li>Re-use existing controls in new WPF applications </li></ul></ul>WPF & Windows Forms Interop – &quot;Hybrid&quot; Apps 05/28/09 © Microsoft Corporation 2007
  37. 37. <ul><li>Leverage ASP.NET Services on the client </li></ul><ul><ul><li>Share user authentication and authorization between Client and Web applications </li></ul></ul><ul><ul><li>Store user settings on the web </li></ul></ul><ul><li>Client Services infrastructure </li></ul><ul><ul><li>Handles web services communication </li></ul></ul><ul><ul><li>Provides offline support </li></ul></ul>Client Application Services 05/28/09 © Microsoft Corporation 2007
  38. 38. Simplified development using the new WPF design tools Interoperability with WPF & WinForms
  39. 39. Windows Communication Foundation <ul><li>Microsoft’s platform for distributed systems </li></ul><ul><li>Build WCF services in Visual Studio 2008 using any .NET Language </li></ul><ul><ul><li>Intelligent code editing, IDE Extensions for WCF, debugging, re-factoring, code snippets, Autohost, test, client, config editing, etc. </li></ul></ul><ul><ul><li>Visual Basic .NET, Visual C#, etc. </li></ul></ul><ul><li>Runs on </li></ul><ul><ul><li>Microsoft Windows Vista </li></ul></ul><ul><ul><li>Microsoft Windows XP </li></ul></ul><ul><ul><li>Microsoft Windows Server 2003 </li></ul></ul><ul><ul><li>Microsoft Windows Server 2008 </li></ul></ul>
  40. 40. WCF – What's New in Visual Studio 2008 <ul><li>Tooling </li></ul><ul><ul><li>Autohost, test client, new config editor, debugging </li></ul></ul><ul><li>HTTP programming support </li></ul><ul><ul><li>1 st class REST support, Syndication </li></ul></ul><ul><li>JSON messaging support </li></ul><ul><li>OASIS standard support (new protocols) </li></ul><ul><li>Windows Workflow Foundation (WF) integration </li></ul>
  41. 41. Windows Workflow Foundation <ul><li>Programming model, engine and tools for building workflow enabled applications on Windows platform </li></ul><ul><li>Author Workflows in Visual Studio 2008 using any .NET Language </li></ul><ul><ul><li>Intelligent code editing, IDE Extensions for designing workflows, visual debugging, re-factoring, code snippets, Service Contract designer, new service activities, etc. </li></ul></ul><ul><ul><li>Visual Basic .NET, Visual C#, etc. </li></ul></ul><ul><li>Runs on </li></ul><ul><ul><li>Microsoft Windows Vista </li></ul></ul><ul><ul><li>Microsoft Windows XP </li></ul></ul><ul><ul><li>Microsoft Windows Server 2003 </li></ul></ul><ul><ul><li>Microsoft Windows Server 2008 </li></ul></ul>
  42. 42. WF – What's New in Visual Studio 2008 <ul><li>Integration between WF and WCF </li></ul><ul><ul><li>Services implemented as workflow </li></ul></ul><ul><ul><li>Workflow hosted as service </li></ul></ul><ul><li>Benefits </li></ul><ul><ul><li>Enables durable services </li></ul></ul><ul><ul><li>Enables conversations </li></ul></ul><ul><ul><li>Enables security around workflows </li></ul></ul><ul><li>New tooling to create contracts </li></ul>
  43. 43. Building Connected Applications with Windows Communication Foundation and Windows Workflow Foundation
  44. 44. Office Client Applications and VSTO Office Business Applications Visual Studio Tools for Office Ribbon Designer Outlook Form Regions ClickOnce Deployment
  45. 45. Office as a Developer Platform <ul><li>Familiar user interface </li></ul><ul><li>500+ million users worldwide </li></ul><ul><li>Office Open XML file formats </li></ul><ul><li>Microsoft Office SharePoint Server 2007 </li></ul>
  46. 46. LOB Apps The &quot;Results Gap&quot;
  47. 47. LOB Apps Office Business Applications
  48. 48. Estimate custom design Unstructured Create Lead Qualified? Retire Lead Create Oppt’y Create Quote Closed? Complete Sale Create Invoice Get specs from customer Validate specs with Tech Sales Cost out the solution Decide discount strategy Assemble proposed response Approve proposed response Structured “ Classic” Enterprise Applications Office Business Applications Estimate custom design Unstructured Office SharePoint Server Word Excel Outlook InfoPath
  49. 50. <ul><li>Document-level code behind </li></ul><ul><li>Brings Microsoft Office into the managed world </li></ul><ul><li>Strict security model </li></ul><ul><li>Custom ActionsPane </li></ul><ul><li>Host Controls on doc surface </li></ul><ul><li>Cached Data in the document </li></ul><ul><li>Server-side data processing </li></ul><ul><li>App-level add-ins for Outlook </li></ul>VSTO 2008 <ul><li>New designers: ribbon, custom task pane, Outlook form region </li></ul><ul><li>App-level add-ins for most client programs </li></ul><ul><li>ClickOnce deployment and security </li></ul><ul><li>VBA/VSTO interoperability </li></ul><ul><li>Workflow & Microsoft SharePoint support </li></ul><ul><li>VSTO integral part of Visual Studio 2008 Professional </li></ul>VSTO 2005 & VSTO 2005 SE VSTO 2003
  50. 51. Office Applications <ul><li>Visual Studio 2008 Professional includes Visual Studio Tools for Office </li></ul><ul><li>Visual designers for Ribbon, Task & Action pane, Outlook Form Region customization </li></ul><ul><li>Integrated Workflow & Microsoft SharePoint Support </li></ul><ul><li>Data binding in Word Content Controls </li></ul><ul><li>Application-level add-ins for most client programs (both 2003 & 2007) </li></ul><ul><li>Document-level add-ins for Excel & Word 2007 </li></ul><ul><li>Improved deployment and security using ClickOnce </li></ul>
  51. 52. <ul><li>Office has built-in support for XML-based customization model </li></ul><ul><li>VSTO 2005 SE support: </li></ul><ul><ul><li>Simplifies hookup from .NET via pre-generated classes and sample XML </li></ul></ul><ul><li>VSTO 2008 support: </li></ul><ul><ul><li>Adds full-blown visual designer support </li></ul></ul><ul><ul><li>“ Export to XML” option </li></ul></ul><ul><ul><li>A more robust programming layer </li></ul></ul>Ribbon Development 05/28/09 © Microsoft Corporation 2007
  52. 53. The benefits of Office Business Applications and the power of the new Ribbon Designer
  53. 54. <ul><li>New technology in Outlook 2007 for enhancing and replacing Outlook’s built-in forms </li></ul><ul><li>Form regions are created using Outlook Forms Designer </li></ul><ul><li>Four types of form regions </li></ul><ul><ul><li>Adjoining and Separate regions for both custom and built-in forms </li></ul></ul><ul><ul><li>Replacement and Replace-all regions for custom forms </li></ul></ul><ul><li>Reading Pane can display all types except Separate </li></ul><ul><li>Code behind form region is implemented as COM Add-in </li></ul><ul><li>New controls provide built-in look and feel as well as data binding to Outlook data </li></ul>Outlook Form Regions 05/28/09 © Microsoft Corporation 2007
  54. 55. <ul><li>VSTO eases development of Outlook form regions </li></ul><ul><ul><li>Use wizard to import Outlook designed form region </li></ul></ul><ul><ul><li>Controls are created and cast to correct name & type </li></ul></ul><ul><li>VSTO enables WinForm form regions </li></ul><ul><ul><li>Drag & Drop WinForms designer provided </li></ul></ul><ul><ul><li>Properties window support </li></ul></ul><ul><li>VSTO provides enhanced programming model, form region manifest object, automatic registration of add-in and form region, etc… </li></ul>Outlook Form Regions and VSTO 05/28/09 © Microsoft Corporation 2007
  55. 56. <ul><li>Low-impact deployment mechanism </li></ul><ul><ul><li>Self-contained </li></ul></ul><ul><ul><li>Solutions installed per user </li></ul></ul><ul><li>Prerequisites are installed if the user is an admin </li></ul><ul><li>Supports solution update / rollback without user intervention </li></ul><ul><li>Offline availability of solution </li></ul>ClickOnce Deployment 05/28/09 © Microsoft Corporation 2007
  56. 57. Leveraging the power of Outlook Form Regions and ClickOnce Deployment for Office 2007
  57. 58. <ul><li>Open XML = new file formats in Microsoft Office 2007 </li></ul><ul><ul><li>Open and standardized </li></ul></ul><ul><ul><li>Provide interoperability, compatibility and transparency </li></ul></ul><ul><li>LINQ to XML enables language-based queries against XML </li></ul><ul><li>Together, these technologies enable a new way of thinking about data in Office documents </li></ul>Microsoft Office Open XML and LINQ to XML 05/28/09 © Microsoft Corporation 2007
  58. 59. LINQ To XML <ul><li>Language integrated query for XML </li></ul><ul><ul><li>Expressive power of XPath / XQuery </li></ul></ul><ul><ul><li>But with C# or VB as programming language </li></ul></ul><ul><li>Leverages experience with DOM </li></ul><ul><ul><li>Functional construction </li></ul></ul><ul><ul><li>Element centric, not document centric </li></ul></ul><ul><ul><li>Simplified XML namespace support </li></ul></ul><ul><ul><li>Annotations </li></ul></ul><ul><ul><li>Faster and smaller </li></ul></ul><ul><ul><ul><li>Designed to make XML usable without learning specialized technologies such as XPath/XSLT </li></ul></ul></ul>
  59. 60. LINQ to XML Programming XML today Document- centric No integrated queries Memory intensive <contacts> <contact> <name>Great Lakes Food</name> <phone>(503) 555-7123</phone> </contact> … </contacts>
  60. 61. LINQ to XML Programming XML with LINQ Element- centric Integrated queries Smaller and faster <contacts> <contact> <name>Great Lakes Food</name> <phone>(503) 555-7123</phone> </contact> … </contacts>
  61. 62. Accessing content from Open XML using LINQ to XML
  62. 63. Summary <ul><li>Visual Studio 2008 and .NET 3.5 provide a host of new features and tools that: </li></ul><ul><ul><li>Improve developer productivity (LINQ, Intellisense, debugging, etc.) </li></ul></ul><ul><ul><li>Support the latest platforms (Vista, Windows Server 2008, Office 2007) </li></ul></ul><ul><ul><li>Enable unprecedented team collaboration (Visual Studio Team System 2008) </li></ul></ul>
  63. 64. Additional VS2008 Features… <ul><li>Language enhancements </li></ul><ul><li>MFC & C++ enhancements for Vista “look & feel” </li></ul><ul><li>New managed add-in model </li></ul><ul><li>CLR enhancements </li></ul><ul><ul><li>Partial trust, Threading enhancements </li></ul></ul><ul><li>High-performance trace listener </li></ul><ul><li>Trace listener that logs events to Event Tracing for Windows in Windows Vista </li></ul><ul><li>Anonymous pipes and named pipes </li></ul><ul><li>Peer-to-peer network APIs </li></ul><ul><li>WMI Provider Extension 2.0 </li></ul><ul><li>SQL Server Compact Edition </li></ul><ul><li>SQL Server Reporting Services Support </li></ul>XSLT Debugger MSBuild – parallel/multi-processor builds, multi-threaded builds VSTS improvements Profiler support for WCF Applications Customize and extend code correctness policies – Team edition for developers Tools for performance tuning an enterprise app Web Test rules improvements Version control support – annotate
  64. 65. New Language Features – C# <ul><li>Local Variable Type Inference </li></ul><ul><li>Object Initializers </li></ul><ul><li>Collection Initializers </li></ul><ul><li>Anonymous Types </li></ul><ul><li>Auto-Implemented Properties </li></ul><ul><li>Extension Methods </li></ul><ul><li>Lambdas </li></ul><ul><li>Query Expressions </li></ul><ul><li>Expression Trees </li></ul><ul><li>Partial Methods </li></ul><ul><li>Implicitly-Typed Arrays </li></ul>
  65. 66. New Language Features – VB <ul><li>Query operators </li></ul><ul><li>Nullable support </li></ul><ul><li>Lambda Expressions (aka Inline Functions) </li></ul><ul><li>Partial Methods </li></ul><ul><li>Anonymous Types w/Keys </li></ul><ul><li>Query Expressions </li></ul><ul><li>Expression Trees </li></ul><ul><li>Partial Methods </li></ul><ul><li>Implicitly-Typed Arrays </li></ul>