vs 2015更新依赖关系到最新版本

时间:2015-08-04 13:45:33

标签: visual-studio-2015

有谁知道如何更新最新版本的依赖项?我使用默认的MVC ASP.NET 5模板创建了一个Web应用程序。它使用bootstrap 3.0.0但我希望它(与其他软件包一起)使用最新版本进行更新。当前版本的bootstrap是3.3.5但是当我右键点击bower时,我无法更新软件包> bootstrap依赖项并选择“Update package”。 Bower / NPM的输出窗口显示如下:

PATH = D:\ Documents \ Visual Studio 2015 \ Projects \ iKnow \ src \ iKnow。\ node_modules.bin; D:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External;%PATH%; D:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ git “D:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ Bower.cmd”update bootstrap --force-latest --production bower bootstrap#3.0.0 cached git://github.com/twbs/bootstrap.git#3.0.0 bower bootstrap#3.0.0验证3.0.0对git://github.com/twbs/bootstrap.git#3.0.0 PATH = D:\ Documents \ Visual Studio 2015 \ Projects \ iKnow \ src \ iKnow。\ node_modules.bin; D:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External ;%PATH%; D:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ git “D:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ Bower.cmd”update bootstrap --force-latest --production bower bootstrap#3.0.0 cached git://github.com/twbs/bootstrap.git#3.0.0 bower bootstrap#3.0.0验证3.0.0对git://github.com/twbs/bootstrap.git#3.0.0

1 个答案:

答案 0 :(得分:1)

只需打开文件" bower.json"并改变这一行:

"bootstrap": "3.0.0",

...为:

"bootstrap": "3.3.5",

...并关闭文件。 Bootstrap将自动更新。

同时搜索_Layout.cshtml以获取bootstrap / 3.0.0并在那里更改它(两个地方。)