Tfignore file does not ignore asp.net 5 project files

While working with ASP.NET 5 projects using TFVC and Visual Studio 2015, we noticed that adding a .tfignore file that tries to exclude folders and files in the wwwroot directory still appears in Team Explorer as pending changes. Since CSS and JavaScript files do not need to be checked (they are generated from SASS and TypeScript sources), we would like them to be excluded. We added a simple .tfignore file to our project, in which there is only an entry in \ wwwroot (we decided that we would start with the simplest and simply ignore everything in the wwwroot directory), and the file does not seem to be recognized since the elements in the wwwroot folder are all still appear in the pending changes window. We also tried to follow the steps listed at https://msdn.microsoft.com/en-us/library/ms245454.aspx#tfignoreunder "Create and use a .tfignore file", and although these added entries were in a global .tfignore file, the directory that was supposed to be excluded still showed up in pending changes. Is the .tfignore file supposed to work with ASP.NET 5 projects? When searching for a solution, I came across articles talking about a .tfignore file that did not exclude things from Solution Explorer (which I would not expect how everything works), but nothing was mentioned about anything around TFVC and .tfignore.

We work with the local workspace in TFVC and never check the files for the wwwroot directory (we all manually check their exclusion when checking, but it would be nice if this happened automatically with the .tfignore file).

+4
source share
1 answer

This is a known issue with ASP.NET5, please refer to this link for more information: https://github.com/aspnet/Tooling/issues/18

+2
source

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


All Articles