Sul Aga
Sul Aga

Reputation: 6742

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

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.

Upvotes: 4

Views: 891

Answers (1)

Sul Aga
Sul Aga

Reputation: 6742

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

enter image description here

enter image description here

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

Upvotes: 3

Related Questions