I am working on a solution on Microsoft Visual Studio 2013 Premium, among a large group of developers. Every time someone makes changes in any file, i get the latest version of the solution and the Output
Window gives a list with all the modified files. Problem is i want to check specific files in the project (.xml, .cs, etc). Is there a way to filter these files by their file extension or maybe by their folder location in the solution? Thanks in advance!
Asked
Active
Viewed 481 times
1

Habeeb
- 7,601
- 1
- 30
- 33

Tasos Moustakas
- 308
- 3
- 12
- 22
-
Are you using GIT? If so, then yes, definitely. Try `git diff commitHashOlder commitHashYounger` – eddyP23 Jul 31 '17 at 08:04
-
If it is TFS, right click on file > Source Control > Compare . Or if there are many files then you can do same on project history and compare. It would show a set of files modified and right click on each file and compare. – Siva Gopal Jul 31 '17 at 08:07
-
@eddyP23 No GIT, unfortunately.. – Tasos Moustakas Jul 31 '17 at 08:07
-
@SivaGopal is there a way to filter files by their file extension? I would like to see only .cs set of files in the project history – Tasos Moustakas Jul 31 '17 at 08:20
-
I think that option is not available in TFS. – Siva Gopal Jul 31 '17 at 08:56
-
May be you can try [this plugin](https://marketplace.visualstudio.com/items?itemName=AlexandrBiryukov.TFSSourceControlHistoryVisualization) – Siva Gopal Jul 31 '17 at 09:29
1 Answers
1
The simplest way is using tf check out command.
There's an itemspec you could pass, and an itemspec could contain wildcards.
itemspec
Specifies the scope of the items to check in. For syntax, see Use Team Foundation version control commands.
For example, you could use below command to check out all .cs
fils under a folder.
tf checkout /recursive *.cs

PatrickLu-MSFT
- 49,478
- 5
- 35
- 62