gpt4 book ai didi

visual-studio - 如何在解决方案加载时禁用 Visual Studio 2015 及更高版本的自动 bower 安装?

转载 作者:行者123 更新时间:2023-12-03 09:23:00 24 4
gpt4 key购买 nike

每当我在 Visual Studio 2015 或 2017 RC 中打开解决方案时,它都会自动在其中一个项目上运行 bower install。 bower 安装输出可以在 Bower/NPM 中看到输出 View 下的输出:

PATH=X:\iis\wwwroot\LeExampleProjectName\.\node_modules\.bin;%PATH%
"C:\Users\PC118\AppData\Roaming\npm\Bower.cmd" install --force-latest
bower angular#1.3.14 cached git://github.com/angular/bower-angular.git#1.3.14
bower angular#1.3.14 validate 1.3.14 against git://github.com/angular/bower-angular.git#1.3.14
bower bootstrap#3.3.2 cached git://github.com/twbs/bootstrap.git#3.3.2
bower bootstrap#3.3.2 validate 3.3.2 against git://github.com/twbs/bootstrap.git#3.3.2
bower moment#~2.10.3 cached git://github.com/moment/moment.git#2.10.6
bower moment#~2.10.3 validate 2.10.6 against git://github.com/moment/moment.git#~2.10.3
bower angular-sanitize#1.3.14 cached git://github.com/angular/bower-angular-sanitize.git#1.3.14
bower angular-sanitize#1.3.14 validate 1.3.14 against git://github.com/angular/bower-angular-sanitize.git#1.3.14
bower lodash#3.3.1 cached git://github.com/lodash/lodash.git#3.3.1
bower lodash#3.3.1 validate 3.3.1 against git://github.com/lodash/lodash.git#3.3.1
bower angular-ui-select#~0.12.0 cached git://github.com/angular-ui/ui-select.git#0.12.1
bower angular-ui-select#~0.12.0 validate 0.12.1 against git://github.com/angular-ui/ui-select.git#~0.12.0
bower angular-animate#1.3.14 cached git://github.com/angular/bower-angular-animate.git#1.3.14
bower angular-animate#1.3.14 validate 1.3.14 against git://github.com/angular/bower-angular-animate.git#1.3.14
bower angular-strap#2.2.0 cached git://github.com/mgcrea/angular-strap.git#2.2.0
bower angular-strap#2.2.0 validate 2.2.0 against git://github.com/mgcrea/angular-strap.git#2.2.0
bower selectize#0.8.5 cached git://github.com/brianreavis/selectize.js.git#0.8.5
bower selectize#0.8.5 validate 0.8.5 against git://github.com/brianreavis/selectize.js.git#0.8.5
bower microplugin#0.0.x cached git://github.com/brianreavis/microplugin.js.git#0.0.3
bower microplugin#0.0.x validate 0.0.3 against git://github.com/brianreavis/microplugin.js.git#0.0.x
bower jquery#>=0.6.0 cached git://github.com/jquery/jquery.git#2.1.4
bower jquery#>=0.6.0 validate 2.1.4 against git://github.com/jquery/jquery.git#>=0.6.0
bower sifter#0.3.x cached git://github.com/brianreavis/sifter.js.git#0.3.4
bower sifter#0.3.x validate 0.3.4 against git://github.com/brianreavis/sifter.js.git#0.3.x
bower jquery#>= 1.9.1 cached git://github.com/jquery/jquery.git#2.1.4
bower jquery#>= 1.9.1 validate 2.1.4 against git://github.com/jquery/jquery.git#>= 1.9.1
bower lodash#3.3.1 install lodash#3.3.1
bower moment#~2.10.3 install moment#2.10.6
bower angular-sanitize#1.3.14 install angular-sanitize#1.3.14
bower angular-ui-select#~0.12.0 install angular-ui-select#0.12.1
bower angular#1.3.14 install angular#1.3.14
bower selectize#0.8.5 install selectize#0.8.5
bower angular-animate#1.3.14 install angular-animate#1.3.14
bower microplugin#0.0.x install microplugin#0.0.3
bower sifter#0.3.x install sifter#0.3.4
bower angular-strap#2.2.0 install angular-strap#2.2.0
bower bootstrap#3.3.2 install bootstrap#3.3.2
bower jquery#>= 1.9.1 install jquery#2.1.4
lodash#3.3.1 bower_components\lodash
moment#2.10.6 bower_components\moment
angular-sanitize#1.3.14 bower_components\angular-sanitize
└── angular#1.3.14
angular-ui-select#0.12.1 bower_components\angular-ui-select
└── angular#1.3.14
angular#1.3.14 bower_components\angular
selectize#0.8.5 bower_components\selectize
├── jquery#2.1.4
├── microplugin#0.0.3
└── sifter#0.3.4
angular-animate#1.3.14 bower_components\angular-animate
└── angular#1.3.14
microplugin#0.0.3 bower_components\microplugin
sifter#0.3.4 bower_components\sifter
angular-strap#2.2.0 bower_components\angular-strap
└── angular#1.3.14
bootstrap#3.3.2 bower_components\bootstrap
└── jquery#2.1.4
jquery#2.1.4 bower_components\jquery

有没有办法禁用这种自动 bower 安装?以及其他配置方式?

最佳答案

在 VS 2017 及更新版本中,您可以访问:

Tools -> Options -> Projects and Solutions -> Web Package Management -> Package Restore

并将您不希望在项目打开或保存时发生的恢复设置为 false:

关于visual-studio - 如何在解决方案加载时禁用 Visual Studio 2015 及更高版本的自动 bower 安装?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31965425/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com