无法在Visual Studio 2015 RC中使用bower安装angularjs [英] Can not install angularjs using bower in Visual Studio 2015 RC
问题描述
无法在Visual Studio 2015 RC中使用bower.json安装angularjs。
我应该在Options-> NuGet Package Manager中使用什么包源 - > ;包装来源?
有人这样做,请分享。
我已按照以下文章:http://docs.asp.net/en/latest/client-side/angular.html
添加角度到bower.json文件:
{
name: ASP.NET,
private: true ,
依赖项:{
bootstrap: 3.0.0,
jquery: 1.10.2,
jquery-validation: 1.11.1,
< span class =code-string> jquery-validation-unobtrusive: 3.2.2,
hammer。 js: 2.0.4,
bootstrap-touch-carousel: 0.8.0,
angular : *
}
}
但是bower无法安装软件包。
Bower现在安装/恢复角度和角度路线到我的项目
{
name: ASP.NET,
private: true ,
依赖项:{
bootstrap: 3.0.0,
jquery: 1.10.2,
jquery-validation: 1.11.1,
jquery-validation-unobtrusive : 3.2.2,
hammer.js: 2.0。 4,
bootstrap-touch-carousel: 0.8.0,
angular: *,
angular-route: *
}
}
通过添加角度和角度路线以及*作为版本,bower安装angular.js版本1.3.15
和angular-route.js版本1.3.15
也可以使用gulp复制到wwwroot / lib
Unable to install angularjs using bower.json in Visual Studio 2015 RC.
What should I use for package source in Options->NuGet Package Manager->Package Sources?
Have anyone done this, please share.
I have followed the article at: http://docs.asp.net/en/latest/client-side/angular.html
to add angular to bower.json file :
{
"name": "ASP.NET",
"private": true,
"dependencies": {
"bootstrap": "3.0.0",
"jquery": "1.10.2",
"jquery-validation": "1.11.1",
"jquery-validation-unobtrusive": "3.2.2",
"hammer.js": "2.0.4",
"bootstrap-touch-carousel": "0.8.0",
"angular": "*"
}
}
But bower unable to install the package.
Bower now installs/restores angular and angular-route to my project
{ "name": "ASP.NET", "private": true, "dependencies": { "bootstrap": "3.0.0", "jquery": "1.10.2", "jquery-validation": "1.11.1", "jquery-validation-unobtrusive": "3.2.2", "hammer.js": "2.0.4", "bootstrap-touch-carousel": "0.8.0", "angular": "*", "angular-route": "*" } }
By adding angular and angular-route with "*" as version, bower installs angular.js version 1.3.15
and angular-route.js version 1.3.15
Also able to copy to wwwroot/lib using gulp
这篇关于无法在Visual Studio 2015 RC中使用bower安装angularjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!