问题
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