1. What’s new in .NET 4.5 &
Visual Studio 2012?
Robert MacLean
Technology Specialist, Microsoft MVP
BBD
PART 1
2. Join the DeveloperUG
Monthly user group meetings & workshops
Range of topics, from crafting code to web & app
technologies
Join the user group at www.DeveloperUG.org.za
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. So what is new?
Trajectory UTF-16 for Console Ribbon outs Async
WCF 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 parallelizer
Portable Class Libraries
Networking Storage of view state AMP
Web API
CLR 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. Agenda: Part 1
History & Trajectory
My favourite mini tricks
Workflow Foundation
Async
5
6. Agenda: Part 2
Entity Framework
Web Development
ASP.NET
6
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
9. Cadence
VS & TFS: Cumulative updates that ship ~3 months
ASP.NET & EF : Using Nuget to update more often
Since August 2012
10 updates from various teams that update VS
10. Cadence
Lots of new functionality in the Gallery
Since August 2012
Almost 20 extensions released by Microsoft
That means a new extension almost every 13 days!
Excluding updates!
11. My favourite mini tricks
Upgrading to VS 2012
New culture options & how Windows 8 will break your
apps
How CallerMemberName will make your MVVM better
14. Impact of that little change?
Office: I am learning a whole new set of pain
.NET: .Format, .ToString & .Parse
SharePoint: Built on .NET – impacted by this
Your existing data in a database
15. Review: My favourite mini tricks
VS 2012 upgrading is a much lower risk
Culture can be globally controlled
CallerMemberName = awesome
16. Workflow Foundation
Look at the much improved designer
We finally get C# support
Review of workflow persistence, good, bad & what fixes
it!
22. Async
Look at async & await modifiers
See how to use your existing Task skills
New TPL features: WhenAll, WhenAny, Delay
Review how the framework is leveraging this
24. Review: Async
async & await modifiers give us syntactic sugar
Build using the Tasks – so your current Task skills carry
over
New TPL features: WhenAll, WhenAny, Delay
Plenty of .NET API’s offering async modes
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 belt
2
5
27. What’s new in .NET 4.5 &
Visual Studio 2012?
Robert MacLean
Technology Specialist, Microsoft MVP
BBD
PART 2
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!
2
8
29. So what is new?
Trajectory UTF-16 for Console Ribbon outs Async
WCF 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 parallelizer
Portable Class Libraries
Networking Storage of view state AMP
Web API
CLR 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. Agenda: Part 1
History & Trajectory
My favourite mini tricks
Workflow Foundation
Async
3
0
31. Agenda: Part 2
Entity Framework
Web Development
ASP.NET
3
1
32. What NOT to expect?
ALM: TFS, Git, Unit Testing etc…
Windows Store App dev
LightSwitch (because you are coming to my other talk)
3
2
33. Entity Framework
Look at how easy it is to start with EF
Showing the designer & code first improvements
Show off the awesome new LocalDB
3
3
35. Review: Entity Framework
Runs on it’s own cadence – EF 6 is coming
Enumerator support
Support for LocalDB
Designer Improvements
3
5
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 bit
3
6
38. SPA – other templates
Knockout.js – out of the box A template that merges
EmberJS jQuery
DurandalJS DurandalJS
BreezeJS
KnockoutJS
requireJS
Toastr.js
Twitter Bootstrap
40. Bundles
Before 121,8 KB
0,4% Improvement… uh so what?
Average HTTP heads is 700 to 800 - Google SPDY Research White Paper
After 121,31 KBa 1.05% improvement!
That becomes
Max connections 6 to 8 + latency improvements
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. Review: Web Development
Cadence – more toys; more often
Responsive templates
Visual Studio improvements for web devs
Web Forms feature parity with MVC
4
2
43. Review: ASP.NET
Web API
Bundles
Single Page Applications
4
3
44. Review
Entity Framework: the features you have asked for!
ASP.NET – SO MUCH STUFF!!!!
Visual Studio – the best web development IDE
4
4
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