7. ASP.NET MVC官方網站
• 有興趣可多關注,最新技術分享
– http://www.asp.net/mvc
8. ASP.NET MVC其實就是優點
• ASP.NET MVC gives you a powerful, patterns-based way to
build dynamic websites that enables a clean separation of
concerns and that gives you full control over markup for
enjoyable, agile development. ASP.NET MVC includes many
features that enable fast, TDD-friendly development for
creating sophisticated applications that use the latest web
standards.
– Patterns-base 習慣大於配置
– SoC ”關注點分離!”,流程與UI分離。
– Enjoyable(?)、agile 開發更快速
– TDD-friendly 單元、整合、自動測試架構。
– Latest web standards. 符合最新網頁標準
27. Which version?
• VS2010 MVC4今天介紹這個
• VS2012 MVC5
– .NetFramework 4.5+
– Visual Studio 2012
• VS2014 MVC6
– vNext
– No more System.Data, lighter...
– Linux、MAC、RaspbarryPi… available.
– Azure Cloud
28. ASP.NET MVC4 features.
• 對行動裝置平台支援更好,更加開放標準!!
– ASP.NET web API
– Project templates enhancements
– Mobile project template
– JQuery mobile and View switcher
– Bundling and minification JS,CSS
– OAuth, OpenID
29. MVC4 tools update for VS2010
• http://www.microsoft.com/en-us/download/details.aspx?id=30683
31. Create a new project
• 預設是這些
– Empty
– Basic
– Internet App
– Intranet App
– Mobile App
– Web Api
• 還有很多其他…
– SingalR(Real-Time)
• By NeGet install.
53. How to Debug Routing?
• 新手很需要這工具!
• NuGet a RouteDebugger
– Current Version 2.1.4
– https://www.nuget.org/packages/routedebugger/
54. How to Debug Routing?
• 長在你頁面最下方。
• Dev時可觀察
• Release移除。