如何解决MVC4 Twitter的引导项目从VS2012简单的NuGet安装失败? [英] How to resolve MVC4 Twitter Bootstrap project fail from simple Nuget installations in VS2012?

查看:304
本文介绍了如何解决MVC4 Twitter的引导项目从VS2012简单的NuGet安装失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与推出与Twitter的引导一个MVC4应用程序的问题。

I'm having an issue with launching a MVC4 application with the Twitter bootstrap.

在VS 2012年,我创建了一个新的空MVC4应用程序,安装了以下软件包:

In VS 2012, I created a new empty MVC4 application, installed the following packages:


  • 安装封装twitter.bootstrap.mvc4

  • 安装封装twitter.bootstrap.mvc4.sample

好像一些导航路线选择相关的问题,因为我要通过这几个turorials <一个href=\"http://lostechies.com/erichexter/2012/12/31/using-mvc-navigation-routes-in-twitter-bootstrap-mvc4/\">Link 1 和<一个href=\"http://lostechies.com/erichexter/2012/11/20/twitter-bootstrap-mvc4-the-template-nuget-package-for-asp-net-mvc4-projects/\">Link 2 。

Seems like some navigation route options-related issues, as I am going through these few turorials Link 1 and Link 2.

在阅读有关可能的编译问题的说明,我重新启动了解决方案,但我收到的错误是不是自述的那些,并重点围绕在 NavigationRouteOptions NavigationRouteFilters RouteValueDictionary FilterToken HasFilterToken

In reading the note about possible compile issues, I restarted the solution, but errors I'm receiving aren't the ones in the readme and are focused around the NavigationRouteOptions, NavigationRouteFilters, RouteValueDictionary, FilterToken and 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的工作?

Is this only working in VS 2013?

本的NuGet包的日期为2013年10月26日。

The Nuget packages are dated October 26, 2013.

援助AP preciated。

Assistance appreciated.

推荐答案

这似乎已经有一个关于的 github上

It seems there is already a discussion about the error in github

尝试卸载1.1.100及以下顺序安装1.0.90版本。

try uninstalling 1.1.100 and install 1.0.90 versions in the following order.


      
  • PM>安装封装twitter.bootstrap.mvc4.sample -Version 1.0.90

  •   
  • PM>卸载封装twitter.bootstrap.mvc4.htmlhelpers -Force

  •   
  • PM>安装封装twitter.bootstrap.mvc4.htmlhelpers -version 1.0.90

  •   
  • PM>卸载封装twitter.bootstrap.mvc4 -Force

  •   
  • PM>安装封装twitter.bootstrap.mvc4 -version 1.0.90

  •   

这篇关于如何解决MVC4 Twitter的引导项目从VS2012简单的NuGet安装失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆