Visual Studio 2015/ TFS 2013 not ignoring bower_components in ASP.NET 5 projects

余生长醉 提交于 2019-12-07 10:17:06

问题


Visual Studio 2015 is not ignoring bower_components folder although it is ignoring node_modules so I don't know what is wrong.

This is the content of my 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"
  ]
}

How can I force VS 2015 to hide bower_components folder from the project's tree?

I am also strugling with TFS 2013 because I am unable to ignore folders from being tracked for changes. I have tried .tfignore but that didn't work.


回答1:


This issue is now 'fixed' by using the 'Hide from Solution Explorer' option which becomes available with the ASP.NET 5 beta 8 release.

Please follow this link for more information. Please check the "New Visual Studio 2015 Features for ASP.NET 5" section on that page.

Follow this link to download the update and install it for Visual Studio 2015



来源:https://stackoverflow.com/questions/33107526/visual-studio-2015-tfs-2013-not-ignoring-bower-components-in-asp-net-5-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!