What’s new in Visual Studio 2012 & .NET 4.5

2,857 views

Published on

Slides from TechEd Africa 2013 for both part 1 & part 2 for the talk: What’s new in Visual Studio 2012 & .NET 4.5

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
2,857
On SlideShare
0
From Embeds
0
Number of Embeds
893
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Join the Developer User GroupThe Developer User Group is a community driven user group of industry professionalWe meet on the second Tuesday of every month from 16:30 – 18:00 at Microsoft in Bryanston, JohannesburgWide range of topics – technology agnostic, from code to web technologies – Java, C#, Objective C, Javascript - the DeveloperUG covers anything of interest to developersVisit the www.DeveloperUG.org.za to sign upFollow them on twitter @DeveloperUG
  • ArchitectureTalk about optionsEventingMVVMViewStateManager in defaultAlternativesETA: 15min
  • ArchitectureTalk about optionsEventingMVVMViewStateManager in defaultAlternativesETA: 15min
  • ArchitectureTalk about optionsEventingMVVMViewStateManager in defaultAlternativesETA: 15min
  • ArchitectureTalk about optionsEventingMVVMViewStateManager in defaultAlternativesETA: 15min
  • ArchitectureTalk about optionsEventingMVVMViewStateManager in defaultAlternativesETA: 15min
  • What’s new in Visual Studio 2012 & .NET 4.5

    1. 1. What’s new in .NET 4.5 &Visual Studio 2012?Robert MacLeanTechnology Specialist, Microsoft MVPBBD PART 1
    2. 2. Join the DeveloperUGMonthly user group meetings & workshopsRange of topics, from crafting code to web & apptechnologiesJoin the user group at www.DeveloperUG.org.za
    3. 3. What to expect? A platter of .NET 4.5 & VS 2012 features Lots of demos at a high level See it here! Dig into it in other sessions!3
    4. 4. So what is new?Trajectory UTF-16 for Console Ribbon outs AsyncWCF SortVersion INotifyDataErrorInfo DataFlow Iterators WebSockets Better perf for resources Better VirtualizingPanel Tooling Call Hierarchy UDP Better ZIP compression Better perf for large data Entity Framework Caller Info sets Better Tooling IDN support Enum support Global Keyword Data binding to static Cleaner configs String compare changes on LocalDB Code Editing properties Win 8 kernel Validate config in build Live shaping New Cadence C++ Changes to Reflection Async support Check for disconnected data Designer Improvements STL improvements MEF context Binary encoder compression ASP.NET Range based loops support Generics Delay updating to target Cadence Stateless Lambdas Multiple authentication Convention support Better weak event support support Responsive Templates Scoped Enums Multiple scopes WF IDN BEST IDE Auto verctorizer Windows Store support State machine Web Forms Partity Auto parallelizerPortable Class Libraries Networking Storage of view state AMP Web APICLR Better HTTP support NoPersistScope SignalR F# Less restarts WebSockets Contract-first workflow SPA Type Providers Culture Changes services RFC compliant URI’s C# Query Expressions Arrays > 2Gb EAI & IDN Parallel Async Auto-implemented properties Better GC Better IPv6 Perf improvements (400%) Multicore JIT Caller Info Dual-mode sockets Better PLINQ support RegEx Timeouts VB.NET WPF Partitioning, reductions, time
    5. 5. Agenda: Part 1 History & Trajectory My favourite mini tricks Workflow Foundation Async5
    6. 6. Agenda: Part 2 Entity Framework Web Development ASP.NET6
    7. 7. What NOT to expect? ALM: TFS, Git, Unit Testing etc… Windows Store App dev LightSwitch (because you are coming to my other talk)7
    8. 8. .NET 1.0CLR 1.0 C# 1.0 VB 7.0 History lesson .NET 1.1 Released 13 Feb 2002CLR 1.1 C# 1.2 VB 7.1 .NET 3.5 2.0 3.0 .NET.NET.NET 3.5 SP 1CLR 2.0 C# 2.0 2.0 3.0 3.0 C# C# C# VB 8.0 8.0 9.0 9.0 VB VB VB .NET 4 .NET 4.5CLR 4.0 C# 4.0 C# 5.0 VB 10.0 VB 11.0
    9. 9. CadenceVS & TFS: Cumulative updates that ship ~3 monthsASP.NET & EF : Using Nuget to update more oftenSince August 201210 updates from various teams that update VS
    10. 10. CadenceLots of new functionality in the GallerySince August 2012Almost 20 extensions released by MicrosoftThat means a new extension almost every 13 days!Excluding updates!
    11. 11. My favourite mini tricksUpgrading to VS 2012New culture options & how Windows 8 will break yourappsHow CallerMemberName will make your MVVM better
    12. 12. My favourite mini tricks
    13. 13. Did you see what Microsoft changed in Win8?
    14. 14. Impact of that little change?Office: I am learning a whole new set of pain.NET: .Format, .ToString & .ParseSharePoint: Built on .NET – impacted by thisYour existing data in a database
    15. 15. Review: My favourite mini tricksVS 2012 upgrading is a much lower riskCulture can be globally controlledCallerMemberName = awesome
    16. 16. Workflow FoundationLook at the much improved designerWe finally get C# supportReview of workflow persistence, good, bad & what fixesit!
    17. 17. Workflow Foundation
    18. 18. Workflow Persistence: What is it? Code Wait for Timer later time Crashes Admin Database Server
    19. 19. Workflow Persistence: Problem? Code Wait for Timer later time Crashes Admin Database Server
    20. 20. Workflow Persistence in .NET 4.5Workflow 4.5 has versioningSide by side versioningDynamic update versioning
    21. 21. Review: Workflow FoundationDesigner has been vastly improvedC# supportWorkflow persistence
    22. 22. AsyncLook at async & await modifiersSee how to use your existing Task skillsNew TPL features: WhenAll, WhenAny, DelayReview how the framework is leveraging this
    23. 23. AsyncImage © Kathy Cassidy on Flickr
    24. 24. Review: Asyncasync & await modifiers give us syntactic sugarBuild using the Tasks – so your current Task skills carryoverNew TPL features: WhenAll, WhenAny, DelayPlenty of .NET API’s offering async modes
    25. 25. Review History & Trajectory – expect more features more often VS Update is low risk Mini tricks: CallerMemberName & Culture Workflow development & versioning Async: another tool in your concurrency tool belt25
    26. 26. Contact@rmacleanwww.sadev.co.zaSee you soon for PART 2 – Thank you!
    27. 27. What’s new in .NET 4.5 &Visual Studio 2012?Robert MacLeanTechnology Specialist, Microsoft MVPBBD PART 2
    28. 28. What to expect? A platter of .NET 4.5 & VS 2012 features Lots of demos at a high level See it here! Dig into it in other sessions!28
    29. 29. So what is new?Trajectory UTF-16 for Console Ribbon outs AsyncWCF SortVersion INotifyDataErrorInfo DataFlow Iterators WebSockets Better perf for resources Better VirtualizingPanel Tooling Call Hierarchy UDP Better ZIP compression Better perf for large data Entity Framework Caller Info sets Better Tooling IDN support Enum support Global Keyword Data binding to static Cleaner configs String compare changes on LocalDB Code Editing properties Win 8 kernel Validate config in build Live shaping New Cadence C++ Changes to Reflection Async support Check for disconnected data Designer Improvements STL improvements MEF context Binary encoder compression ASP.NET Range based loops support Generics Delay updating to target Cadence Stateless Lambdas Multiple authentication Convention support Better weak event support support Responsive Templates Scoped Enums Multiple scopes WF IDN BEST IDE Auto verctorizer Windows Store support State machine Web Forms Partity Auto parallelizerPortable Class Libraries Networking Storage of view state AMP Web APICLR Better HTTP support NoPersistScope SignalR F# Less restarts WebSockets Contract-first workflow SPA Type Providers Culture Changes services RFC compliant URI’s C# Query Expressions Arrays > 2Gb EAI & IDN Parallel Async Auto-implemented properties Better GC Better IPv6 Perf improvements (400%) Multicore JIT Caller Info Dual-mode sockets Better PLINQ support RegEx Timeouts VB.NET WPF Partitioning, reductions, time
    30. 30. Agenda: Part 1 History & Trajectory My favourite mini tricks Workflow Foundation Async30
    31. 31. Agenda: Part 2 Entity Framework Web Development ASP.NET31
    32. 32. What NOT to expect? ALM: TFS, Git, Unit Testing etc… Windows Store App dev LightSwitch (because you are coming to my other talk)32
    33. 33. Entity Framework Look at how easy it is to start with EF Showing the designer & code first improvements Show off the awesome new LocalDB33
    34. 34. Entity Framework Image © puntxote on Flickr
    35. 35. Review: Entity Framework Runs on it’s own cadence – EF 6 is coming Enumerator support Support for LocalDB Designer Improvements35
    36. 36. Web development Visual Studio is the best IDE for web dev & I’ll prove it Latest web trends: responsive, SPA, bundling New powerful services: Web API We are going to jump around a bit36
    37. 37. What is new in Web Dev?
    38. 38. SPA – other templatesKnockout.js – out of the box A template that mergesEmberJS jQueryDurandalJS DurandalJS BreezeJS KnockoutJS requireJS Toastr.js Twitter Bootstrap
    39. 39. BundlesBefore 324,34 KBAfter 110,58 KB
    40. 40. BundlesBefore 121,8 KB 0,4% Improvement… uh so what?Average HTTP heads is 700 to 800 - Google SPDY Research White PaperAfter 121,31 KBa 1.05% improvement! That becomesMax connections 6 to 8 + latency improvements
    41. 41. Web Essentials 2012 – at time of slide creation• TypeScript • iOS Scrollbars • Add smart tags • Regions • CSS 3 animation names • Better intellisense • Source Maps • Inline URL picker • JavaScript • Compiler Options • Browser compat warnings • JSHint • Minifications • Remove duplicate properties • Regions• StyleSheets • CSS Gradients • Minification • Options • Lighten/darken key shortcuts • JsDoc • Vendor specific extensions • Move properties up & down • Outlining • Add missing standard properties • F1 opens correct specification • Auto-complete braces • Keep vendor tags in sync while • Team wide colour schemes • Smarter indent editing • LESS • Zen Coding • Display Browser Support • Embed URL as Base64 • Modenizer Support • Minification • Lorem Ipsem Generator • !important • Font preview • Mark down preview • Always up to date with browsers • Image preview • Add region • Sort properties • Custom fonts • Drag & drop for images & fonts
    42. 42. Review: Web Development Cadence – more toys; more often Responsive templates Visual Studio improvements for web devs Web Forms feature parity with MVC42
    43. 43. Review: ASP.NET Web API Bundles Single Page Applications43
    44. 44. Review Entity Framework: the features you have asked for! ASP.NET – SO MUCH STUFF!!!! Visual Studio – the best web development IDE44
    45. 45. Contact@rmacleanwww.sadev.co.zaThank you!

    ×