Asp.Net MVC 5
-
Upload
emanuele-bartolesi -
Category
Technology
-
view
2.052 -
download
2
Embed Size (px)
description
Transcript of Asp.Net MVC 5

#WebAndBeyond

Sponsor

Agenda Chi eravamo e dove andiamo One Asp.Net Novità WebForms Novità MVC 5 Migrazione da MVC 4 a MVC 5

Prima…



Adesso…

ONE ASP.NET



ONE ASP.NET
ASP.NET
WebForms
Sites
WebPages
SinglePageApps
MVCWebAPI
SignalR
Services
YOU! YOU!

ASP.NET 4.5In generale• Script e Librerie da NuGet• Async• Web Optimization• Request Validation• Data Annotations• HTML5 Web Sockets (IIS 8 e SignalR)• 30% più veloce a partire• 30% di occupazione di memoria in meno!

WebForms

WebForms• HTML5• Request Validation• Strongly Typed Data Controls• Model Binders

Strongly Typed Data Controls

MVC 5

MVC 5 • HTML5• Bootstrap• Scaffolding• Async• Routing• ASP.NET Identity• Filter Overrides• EF6

demo
Bootstrap

demo
Scaffolding

demo
Routing

demo
ASP.NET Identity

demo
Filter Overrides

E se ho già un progetto MVC 4?

MVC 4 > MVC 5• Verificare che le librerie usate siano
compatibili• Tools -> Library Package Manager ->
Package Manager Console• Uninstall-Package -Id
Microsoft.AspNet.WebPages.Administration• Uninstall-Package -Id Microsoft-Web-Helpers• Uninstall-Package -Id Microsoft.AspNet.Mvc.FixedDisplayModes• Update-Package (aggiorna tutti i pacchetti scaricati)

MVC 4 > MVC 5• Aggiornare il web.config

MVC 4 > MVC 5• Aggiornare il web.config nella cartella
Views• Tools -> Library Package Manager ->
Package Manager Console• Install-Package -Id
Microsoft.AspNet.WebHelpers• Unload Project -> Edit ProjectName.csproj
e rimuovere il Guid dell’elemento «ProjectTypeGuids»

#WebAndBeyond

Grazie

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted
to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.