Visual Studio 2015 没有忽略bower_components文件夹,尽管它忽略了 node_modules所以我不知道出了什么问题。
这是我的 project.json 的内容
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.Mvc": "6.0.0-beta7",
"Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta7",
"Microsoft.AspNet.StaticFiles": "1.0.0-beta7"
},
"commands": {
"web": "Microsoft.AspNet.Hosting --config hosting.ini"
},
"frameworks": {
"dnx451": { }
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
],
"publishExclude": [
"node_modules",
"bower_components",
"**.xproj",
"**.user",
"**.vspscc"
]
}
如何强制 VS 2015 从项目树中隐藏 bower_components 文件夹?
我也在为 TFS 2013 苦苦挣扎,因为我无法忽略跟踪更改的文件夹。我已经尝试过 .tfignore 但这没有用。