【ASP.NET MVC 5 開發實戰】練習專案
使用工具
- Visual Studio 2013
- SQL Server 2012 Management Studio
- SQL Server 2012 LocalDB (SQL Server 11.0.3000)
- 伺服器名稱:
(localdb)\v11.0
- SQL Server 2012 Express LocalDB (SqlLocalDB) 深入剖析
- 伺服器名稱:
- SQL Server 2014 LocalDB (SQL Server 12.0.2456.0)
- 伺服器名稱:
(localdb)\MSSQLLocalDB
- 伺服器名稱:
- SQL Server Data Tools (SSDT) LocalDB (SQL Server 12.0.2000.8)
- 伺服器名稱:
(localdb)\ProjectsV12
- 伺服器名稱:
- LocalDB 各版本示意圖
![image](https://cloud.githubusercontent.com/assets/88981/7217567/c189301c-e664-11e4-854c-106e1d64f11a.png)
建立 ASP.NET MVC 5 專案步驟說明
專案 NuGet 套件介紹
以下是 Visual Studio 2013 Update 4 內建的 ASP.NET MVC 5 專案範本專案的 NuGet 套件介紹。
[ 後端套件 ]
- ASP.NET MVC 5.2.2
- ASP.NET Web API 5.2.2
- ASP.NET Identity 2.1.0
- Entity Framework 6.1.1
- Microsoft.AspNet.Web.Optimization 1.1.3
- 用來將 javascript, js 最小化 (minification) 與 打包 (bundling) 的工具
- ASP.NET Optimization introduces a way to bundle and optimize CSS and JavaScript files.
- 相關連結
- Microsoft.Web.Infrastructure 1.0.0.0
- 用來在執行時期動態註冊 HTTP modules (相依於 Microsoft.AspNet.Web.Optimization 套件)
- WebGrease 1.5.2
- 用來最佳化 javascript, css 與圖片檔案 (相依於 Microsoft.AspNet.Web.Optimization 套件)
- WebGrease is a suite of tools for optimizing javascript, css files and images.
- 專案位址: https://webgrease.codeplex.com/
- Antlr 3.4.1.9004
- 用來解析 CSS 語法的工具 (相依於 WebGrease 套件) [ 說明 ]
- Newtonsoft.Json (Json.NET) 6.0.4
- 提供 .NET 環境操作 JSON 資料 (相依於 WebGrease 套件)
- 官網: http://james.newtonking.com/json
- 專案位址: https://github.com/JamesNK/Newtonsoft.Json
- OWIN 1.0
- 官網: http://owin.org/
- Microsoft.Owin 3.0.0 (Katana)
- 專案位址: http://katanaproject.codeplex.com/
- 其他 Katana 相關套件
- Microsoft.Owin.Host.SystemWeb
OWIN server that enables OWIN-based applications to run on IIS using the ASP.NET request pipeline. - Microsoft.Owin.Security
Common types which are shared by the various authentication middleware components. - Microsoft.Owin.Security.Cookies
Middleware that enables an application to use cookie based authentication, similar to ASP.NET's forms authentication. - Microsoft.Owin.Security.Facebook
Middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow. - Microsoft.Owin.Security.Google
Contains middlewares to support Google's OpenId and OAuth 2.0 authentication workflows. - Microsoft.Owin.Security.MicrosoftAccount
Middleware that enables an application to support the Microsoft Account authentication workflow. - Microsoft.Owin.Security.OAuth
Middleware that enables an application to support any standard OAuth 2.0 authentication workflow. - Microsoft.Owin.Security.Twitter
Middleware that enables an application to support Twitter's OAuth 2.0 authentication workflow.
- Microsoft.Owin.Host.SystemWeb
[ 前端套件 ]
- jQuery 1.10.2
- jQuery Validation 1.11.1
- Microsoft.jQuery.Unobtrusive.Validation 3.2.2
- 用來與 ASP.NET MVC 5 表單驗證功能搭配使用的 JS 函式庫
- 套件位址: https://www.nuget.org/packages/Microsoft.jQuery.Unobtrusive.Validation/
- 版本說明: http://go.microsoft.com/fwlink/?LinkId=389866
- Bootstrap 3.0.0
- Modernizr 2.6.2
- Respond 1.2.0
相關連結
- Visual Studio 2012 RC is released - The Big Web Rollup - Scott Hanselman
- ASP.NET features in New Project Templates in Visual Studio 2013
- Announcing release of ASP.NET and Web Tools 2013.1 for Visual Studio 2012
- Announcing new Web Features in Visual Studio 2013 Update 2 RTM
- Announcing new Web Features in Visual Studio 2013 Update 3 RTM
- Announcing the Release of ASP.NET MVC 5.1, Web API 2.1 and Web Pages 3.1
- Announcing the Release of ASP.NET MVC 5.2, Web API 2.2 and Web Pages 3.2
- Getting Started with Entity Framework 6 Code First using MVC 5
- Getting Started with Entity Framework 5 Code First using MVC 4
- Getting Started with ASP.NET MVC 4