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

Visual Studio 2015 does not ignore the bower_components folder , although it ignores node_modules , so I do not 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 to make VS 2015 hide the bower_components folder from the project tree?

I am also struggling with TFS 2013 because I cannot ignore folders from change tracking. I tried .tfignore but it did not work.

+4
source share
1 answer

"", "Hide from Solution Explorer", - ASP.NET 5.

enter image description here

enter image description here

. , " Visual Studio 2015 ASP.NET 5" .

, Visual Studio 2015

+3

Source: https://habr.com/ru/post/1611468/


All Articles