Whats new in .NET 4.5

quiverlickforkSoftware and s/w Development

Nov 2, 2013 (3 years and 9 months ago)

65 views





















What

s new
in .NET 4.5

























Business Park King Square


Veldkant 33A

2550

Kontich


www.qframe.be








03 450 80 30

~
2

~

31
-
1
-
2012




03 451 23 98




info@qframe.be


11:03:03


What’s new in .NET 4.5?


When
r
eleas
ing the

developer preview version 4.5 of the .NET framework

last
September 2011
,
Microsoft
disclosed

the changes and new features of the next

official

version
.

Time for an outline
in
this

Qmail

edition

to introduce the interesting
modifications
!

As there have been made many
small and major modifications to the core of the .NET framework, we will focus only on the
important ones.

ASP.NET

Applications written in ASP.NET4.5 will
dispose of a number
of new functionalities
.

The main improvements
are
:

-

the
support of
new HTML5 form types,

-

a
modest

support of JavaScript
in
the
validation

scripts

on client
-
side
,

-

a
-
synchronously

read
ing

and writ
ing

HTTP questions and answers
,


-

bind
ing

data controls
directly to data access methods
,

-

a better protection against cross
-
site scripting attacks
,

-

th
e support of

the

WebSockets protocol.


Windows Presentation Foundation (WPF)

In
the
Developer
Preview
, we

have noticed
some modifications and improvements

regarding
WPF

as well
.

In WPF it is now possible to have

data validation done
synchronic
ally

and/
or
a
-
synchro
nically.

Modifications concerning
data binding
, live shaping of data

(dynamic sorting,
grouping, filtering)
, performance
, better integration with WIN32 user interface components,
etc.
have
also
been implemented
.

The most remarkable
feature is the
R
ibbon control. As it now allows the developer to build an
out of the box
R
ibbon user interface as we know it

in Office2010.

As usually,

the Ribbon control
comes from WPF toolkit.

When c
ontrols
are
released in a new .NET version,

they
are

always
first
elaborately
tested in the WPF
toolkit, which
can be downloaded for free,
before being released
.

Windows Communication Foundation (WCF)

In .NET 4.5
, developing and
configuring

WCF applicati
ons will

be simplified
. Concrete examples
are the

generat
ion of

configuration files

and

the configuration of the ASP.NET
compatibility

mode
.
WCF services
also support the HTTPS protocols
mapping
, that simplifies the
process

to
dispose the service over HTTPS via
Internet Information Services (IIS)
.

The support of
Web
Sockets and
a
-
synchronized

streaming

are also included in this version.

.NET 4.5 also enables WCF configuration

files to be validated

by Visual Studio

during the built
proces
s
, h
ence speeding up the process of detecting errors

in the configuration of the services.

Windows Workflow Foundation (WF)

The
“foundation”

has
also
received a number of new functionalities according

to the

.NET
Framework 4.5

D
eveloper
P
review.



Business Park King Square


Veldkant 33A

2550

Kontich


www.qframe.be








03 450 80 30

~
3

~

31
-
1
-
2012




03 451 23 98




info@qframe.be


11:03:03

Workflow foundation contains
v
iewstate in its XAML files
, with

design related information such
as

lay
-
out positioning. In .NET 4.0 the viewstate information of a workflow was saved on several
locations in a document. In .NET 4.5, the viewstate information is saved in a separate element on
one making it much easier for

the developer to modify or delete

the

viewstate

The Workflow Designer has also received a number of
additional

functionalities
, such as multi
-
select, panning, and an extra search
-
function.
Besides those mentioned above,

the support for
C# expressions and
an
optimiz
ation of

versioning

have been added

to WPF as well.

Metro apps

As
mentioned

in our Qmail about Windows8, there is a
clear
distinction between .NET

4.5 and
the new Windows RuntimeRT.

WinRT is a complete separate framework on top of the kernel

of
the .NET framework
.
It is much smaller than the .NET
framework

and

therefore

imposes more
restrictions
to

the developer
.

As t
he API
’s
,


that

are exposed by

WinRT
,

are written in C++
, the
API’s are not managed but unmanaged API’s.


F
rom .NET applications

you

can
add
ress the
WinRT
libraries

as .NET objects via metadata files.

The developer will not really notice he is working with unmanaged WinRT objects as these
objects are visible as regular .NET ob
j
ects
. You need to take into account
though,
that WinRT

only runs on Windows

8

and that you will lose backward compatibility with previous Windows
versions
.

Tot slot

According to us, t
he new version of the
.NET framework has received a correct version
numbering
, being
.NET 4.5

and not .NET

5
.0.
As the new version merely offers
modifications
to
existing components rather than
new functionalities,
it

is
more an upgrade

of the framework

instead of

a new full version
.

Nevertheless,

Microsoft will satisfy a
wide range of developers
thanks to the improvements

it has made to

WCF, WPF, WF and ASP.NET
.


You can start the count down for the final release
!


More info:

Whats new in .NET 4.0

http://msdn.microsoft.com/en
-
us/library/ms171868.aspx#managed_extensibility_framework

.NET voor Metro Apps

http://msdn.microsoft.com/en
-
us/library/windows/apps/br230302(v=VS.85).aspx