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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With