Twitter ブートストラップで MVC4 アプリケーションを起動する際に問題が発生しています。
VS 2012 で、新しい空の MVC4 アプリケーションを作成し、次のパッケージをインストールしました。
- インストールパッケージ twitter.bootstrap.mvc4
- インストールパッケージ twitter.bootstrap.mvc4.sample
これらのいくつかのチュートリアルLink 1およびLink 2を通過しているため、ナビゲーション ルート オプションに関連する問題のようです。
コンパイルの問題の可能性に関するメモを読んで、ソリューションを再起動しましたが、受け取ったエラーは readme のものではなく、NavigationRouteOptions
、NavigationRouteFilters
、RouteValueDictionary
、FilterToken
およびHasFilterToken
:
'System.Web.Routing.RouteValueDictionary' does not contain a definition for 'HasFilterToken' and no extension method 'HasFilterToken' accepting a
first argument of type 'System.Web.Routing.RouteValueDictionary' could be found (are you missing a using directive or an assembly reference?)
...\AdministrationRouteFilter.cs 18
'System.Web.Routing.RouteValueDictionary' does not contain a definition for 'FilterToken' and no extension method 'FilterToken' accepting a
first argument of type 'System.Web.Routing.RouteValueDictionary' could be found (are you missing a using directive or an assembly reference?)
..\AdministrationRouteFilter.cs 20
The name 'NavigationRouteFilters' does not exist in the current context
'NavigationRouteOptions' could not be found (are you missing a using directive or an assembly reference?)
navigationroutes.mvc4
Nuget パッケージもインストールされていることを確認しました。
これはVS 2013でのみ機能しますか?
Nuget パッケージの日付は 2013 年 10 月 26 日です。
よろしくお願いします。