Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS View History in VS2010 for all files under a Solution

I'm trying to view history in Visual Studio 2010 for all files included in a given Solution file via the Solution Explorer View. I use TFS 2010 for source control, and I'm aware that I can get history for a folder recursively in Source Control Explorer. My issue is that we have multiple projects in a root directory, all of which are included in a variety of solution files in that same directory (each solution file represents a deploy-able component, including some "shared code" between them). I just want to view history on all of the files included in a given solution file, and not everything in this root directory. When I right click on a solution or project in Solution Explorer and "View History", I just get history for that solution file or project file, nothing more.

like image 539
Brett Avatar asked Mar 02 '11 20:03

Brett


People also ask

What is the difference between a solution and a project in Visual Studio?

A project contains executable and library files that make up an application or component of an application. A solution is a placeholder for logically related projects that make up an application. For example, you could have separate projects for your application's GUI, database access layer, and so on.

How do I view the history of a file in Visual Studio?

Visual Studio Code allows us to check the history of navigated files in Navigation History lists. You can open this window from “Goto–> Navigation History” or by just simply pressing Ctrl + Tab. This will bring list of all previously navigated files with in Visual Studio Code.

How to Find solution file in Visual Studio?

You have to go to Tools > Options > Project and Solutions > General , where you can see “Always Shows Solution” is Unchecked. Once you checked “Always Shows Solution” , you will able to view the Solution file with in solution explorer.

How to show solution Explorer in Visual Studio?

By default, the Solution Explorer tool window appears as a pane in the upper-right side of the Visual Studio integrated development environment (IDE). If you don't see the Solution Explorer tool window, you can open it from the Visual Studio menu bar by using View > Solution Explorer, or by pressing Ctrl+Alt+L.

How do I view a history file in Visual Studio?

A display of all VS History files is available in settings: Double-clicking a version will display a diff of that version with the current file. When a file is deleted, its file histories are kept. To view them, open All VS History Files.

How does Visual Studio vshistory for Visual Studio work?

VSHistory for Visual Studio saves a copy of your files every time you save them. They are stored in a special.vshistory directory and can be opened or differences with the current file can be viewed. A custom VSHistory tool window displays each version of project files as they're saved.

Where are vs history files stored?

By default, VS History files are maintained in subdirectories below the source files. You can optionally select an alternate location for VS History files. This is especially useful when opening Visual Studio in Folder View.

How to view history of changes in a folder?

You can right click on any folder in the Source Control Explorer (not the solution opened in Visual Studio) and do view history. That should show all changes sets that has happened in that folder tree. Is this what you want ? Show activity on this post.


1 Answers

Alas, this cannot be done with TFS as it is.

TFS Source control does not know if a file is a solution file or a text document. It just stores it for you. There is no parsing at all. I can (and do) store Delphi project files in TFS. There is no way for TFS to be able to understand and be smart about every file type that exists.

It would be nice if Solution explorer did this for you (as it is specific to your project). But it does not.

You could create a custom plugin to TFS and Visual Studio to do what you are asking, but it would probably take longer than just manually checking the history of all the files in your solution.

like image 71
Vaccano Avatar answered Oct 25 '22 02:10

Vaccano