34
Lap around .NET and Visual Studio 2012 Robert MacLean Technology Specialist BBD

Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Lap around .NET and Visual Studio 2012Robert MacLeanTechnology SpecialistBBD

Page 2: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

The platter of .NET 4.5 & VS 2012 featuresLOT’S of demo’sHigh level explanationsNot covering or even mentioning everything – not enough time

No ALM or Windows Store appsLeave wanting to explore more!

WelcomeWhat can you expect from this talk!

Page 3: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

A little historyMy favoritesWorkflow FoundationAsync

Visual Studio throughout!

AgendaPart 1

Page 4: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

WCFEntity FrameworkLightswitchASP.NET MVC

Visual Studio throughout!

AgendaPart 2

Page 5: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

History lesson timeHow does .NET 4.5 work with previous versions?

CLR 1.0 CLR 1.1 CLR 4.0CLR 2.0

.NET

1.0

C#

1.0

VB

7.0

.NET

1.1

C#

1.2

VB

7.1

.NET

2.0

C#

2.0

VB

8.0

.NET

3.0

C#

2.0

VB

8.0

.NET

3.5

C#

3.0

VB

9.0

.NET

3.5

SP 1

C#

3.0

VB

9.0

.NET 4

C#

4.0

VB

10.0

.NET

4.5

C#

5.0

VB

11

.0

Released 13 Feb 2002

Page 6: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Visual Studio CadenceOut of band updates with new featuresEvery quarter

User Voice

A different style of work

Page 7: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

My favorite things

Page 8: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Visual Studio 2012 upgrading is risk lessCulture can be controlled globally in code

Important with the changes in numbers with Windows 8Can also control in app.config

CallerMemberName makes code less brittle & provides smart ways to inspect what is happening!

CallerFilePathCallerLineNumber

My favorite thingsReview

Page 9: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

What is new in Workflow Foundation?

Page 10: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Workflow

Workflow persistenceWhat is that?

Workflow

Wait for later time

Crashes

Wait for event

Timer

Admin

Event

Code

Database Server

Page 11: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Workflow persistenceWhat is the problem?

Workflow

Wait for later time

Crashes

Wait for event

Timer

Admin

Event

Code

Database Server

Page 12: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Workflow 4.5 has versioningSide by side versioningDynamic update versioning

Workflow persistenceThe solution

Page 13: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

State machine supported out of the boxwf.codeplex.com

C# expression supportDesign surface is vastly improved

Quick add sequenceAnnotationsSearchDocument outline

Workflow Persistence Versioning

What is new in Workflow Foundation?Review

Page 14: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Async

Page 15: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

await & async modifiers give us syntactic sugar.Built on top of Task Parallel Library (TPL), so all the TPL knowledge from .NET 4 is useful. New TPL features

WhenAll, WhenAny, Delay

Plenty of new API’s inside .NET take advantage of this.

AsyncReview

Page 16: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Microsoft new work style: Cadence & User VoiceVisual Studio upgrading is risk freeFavorites: CallerMemberName & CultureWorkflow designer improvements = productivity improvementsWorkflow versioningAsync – the solution to most of your concurrency issues

Part 1 reviewReview

Page 17: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

End of part oneSee you after the break

Page 18: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Lap around .NET and Visual Studio 2012Robert MacLeanTechnology SpecialistBBD

Page 19: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Continuation from part 1The platter of .NET 4.5 & VS 2012 features

LOT’S of demo’sHigh level explanationsNot covering or even mentioning everything – not enough time

No ALM or Windows Store appsLeave wanting to explore more!

WelcomeWhat can you expect from this talk!

Page 20: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

A little historyMy favoritesWorkflow FoundationAsync

Visual Studio throughout!

What we have already seenPart 1

Page 21: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

WCFEntity FrameworkLightswitchASP.NET MVC

Visual Studio throughout!

AgendaPart 2

Page 22: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

What’s new in WCF 4.5?

Page 23: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Configuration improvements mean less head scratchingWeb socket support for better interop

Didn’t show it, but we also have UDP support now

What’s new in WCF 4.5Review

Page 24: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Entity Framework 5

Page 25: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Runs on it’s own cadence – so more features & improvements more oftenEnum support throughoutSupport for localdb Designer improvements!

Entity Framework 5Review

Page 26: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Lightswitch

Page 27: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

LightswitchThemes

Page 28: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Included with Visual Studio Pro+ for freeNew shell & themesService only publishingBest way to create OData services

LightswitchReview

Page 29: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

What is new in ASP.NET?

Page 30: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

BundlesJust how big an improvement?

To 59.83 KB + one call overhead

From 353,5 KB + multiple call overhead+84% improvement

Page 31: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

OData versus WebAPIWCF Data Services Web API

What do you get? Server and client Server only

Compliance High High-Medium-Low

Maturity High Preview -> V1

OData coverage High Low - Medium

Flexibility Low High

Key requirements IQueryable -

Business logic Medium Easy

Formats OData only Any format

Untyped Yes No

WCF Data Services is like views on a databaseWeb API is like stored procs on a database

Page 32: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

Shipping on own cadence – so more toys more oftenNew out of the box RESPONSIVE templatesVisual Studio Improvements

Page inspectorCSSJavaScriptMultiple browser support

BundlesWebAPI

ASP.NETReview

Page 33: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

WCF config improvements & new protocolsEF running on their own cadence, enum support & designer improvementsLightswitch – best way to great OData servicesASP.NET: own cadence, great UI, development improvements everywhere, bundles, WebAPI!

Part 2 reviewReview

Page 34: Techdays 2012 - What is new in .NET 4.5 & Visual Studio 2012

:(The presentation is finished, please feel free to ask any questions now. Thank you for being a great audience today!

You can contact me at @rmaclean or [email protected] Slides & demos will be available at http://www.sadev.co.za