2014年11月28日 星期五

常用NuGet指令

 

Tool:Visual Studio 2013 Ultimate Update 4
OS:Windows 8.1

以下記錄常用的NuGet指令

先開啟Package Manager Console :

image

MVC路由除錯工具

Tool:Visual Studio 2013 Ultimate Update 4
OS:Windows 8.1
ASP.NET MVC 5

若要偵測MVC路由,可以使用NuGet安裝routedebugger工具。

使用Area產生的例外錯誤

Tool:Visual Studio 2013 Ultimate Update 4
OS:Windows 8.1
ASP.NET MVC 5

在ASP.NET MVC5專案中建立Area時發生例外錯誤:

Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.

總網頁瀏覽量