I have a webessentials task that generates min.js files on every project build via the build task. However this builds and generates the new files that are not changed either, which shows up as more files during TFS check-in. Since these files are required for deployment, i cannot exclude them from the project.
Adding the .tfignore for the following also does not help.
*.min.js
..\*.min.js
Is there something wrong here or why does TFS ignore the .tfignore files after the min.js files are checked-in.
I can reproduce this issue, and there are some similar issues discussed in GitHub, eg : https://github.com/aspnet/Home/issues/962
As a workaround, before check in files, you can try to Undo All first, then copy the
.tfignorefile to the root folder which generated the*.min.jsfiles, then manually Add items to folder, you will find that the*.min.jsfiles are excluded this time, then check in the needed files..tfignorefile with the exclusion rules and copy it to the root folder which generated the*.min.jsfiles..tfignorefile first. (Detected link > select the.tfignorefile > Promote > check in )*.min.jsfiles are Excluded automatically, Click Finish > Check in the changes.