VS -TFS bug_ Not show dropdown menu "View history" of solution in Solution Explorer - visual-studio

Can someone help me with that bug in Visual studio with Team Foundation Server?
The dropdown menu "View history" didn't show in "Solution Explorer" (image below).
But sometimes, when I click at "Check in" to solution (then may either cancel or check in), then comeback to dropdown menu, it magically appear (sadly sometime it not).
So almost everytime, I must go to "Team Explorer" and navigate to "Source control Explorer" to View history of my solution. These actions take time, and make me frustrated too.
Thank you for any help, or alternative method!
P/S: I met it in all VS2013 and VS2015.
Image when menu is disappear (almost everytime):
And appear after checking in all solution (rarely):

I couldn't see this issue with my TFS 2015.3 + VS 2015.3. You would have to check history in Source Control Explorer, or use History Command to display the history: https://msdn.microsoft.com/en-us/library/yxtbh4yh(v=vs.100).aspx.
If possible, I'd like to suggest you upgrade your TFS, I couldn't see this issue in both TFS 2013 and TFS 2015.

Related

"Select Startup Item" command / drop-down not showing on Standard toolbar in Visual Studio

Up until recently I could select the startup project (equivalent to right-clicking on the project in the solution explorer and choosing "Set as Startup Project") from the Standard toolbar with the "Select Startup Item" drop-down. Now it's gone, yet the item is still checked under "Add or Remove Buttons".
The closest reference I could find is this, but the solution doesn't match my situation because I have more than one project and this is happening no matter which solution is loaded.
Please help me figure out what is going on.
I had a similar issue where the start menu item (called "Debug Target") was completely gone. Toggling the menu item on and off did not resolve the issue. I selected "Reset Toolbar" at the bottom of the menu and that resolved the problem for me. May require some manual set up after if your menu is heavily customized. But if you use the Standard layout it shouldn't be an issue.
I had the same problem. The "Startup Projects" drop-down disappeared occasionally. It was probably caused by installing/uninstallin/updating VS extensions.
The solution was easy. Install free extension Clear MEF Component Cache. Then simply click the Clear MEF Component Cache in the Tools menu. The toolbar should be repaired after restating Visual Studio.
This solution does NOT reset any of your UI customizations.
Open the "Add or Remove Buttons" dropdown in the section with the "Start" button, deselect "Startup Projects" and close all Visual Studio windows. Open a new instance of Visual Studio and re-enable "Startup Projects." It should show up for you then.

Visual Studio 2010 events button has disappeared

Hi I have been working with visual studio 2010 ultimate all day developing an asp.net webforms application.
I just realized that on the properties for controls window the button for events is missing , the one that looks like a thunderbolt.
An hour ago that button was there and now somehow it has disapeared and I can't figure out how to make it visible again.
I have tryed reseting the visual studio settings and reseting the computer but nothing worked
How can I get the button back?
I had the same problem. This helped me.
1.Restart visual studio 2010.
2.Click and select a control in markup page(.aspx)(like
3.After selecting , Click "View" in menu and select "Property window".
Check the property box, Thunderbolt ll be available. It just happened for me!
If the above solution not working go on with this!
1.Select design view in markup(.aspx)
2.Select any individual control like a button or label..
3.Now, you will be able to see a ">" button on the right side? Click it.
4.Remember to select only one control./.now check your property window! Whoohoo..
Actually while the solution above works, it puts you through more steps than you need. You can resolve this famous disappearing thunderbolt by simply clicking on Design view, and then clicking back on Source view, then clicking again to select the control in source view.
The Thunderbolt icon and events for the control will magically reappear.
You do not need to restart Visual Studio, and you do not need to select anything while in Design view.
And now, for my RANT about this annoying bug:
Even though this is easy to resolve, it is a MAJOR inconvenience to developers in my opinion, because we have to do this silly workaround all the freaking time.
This is in fact a BUG in Visual Studio. It has existed since at least Visual Studio 2010 (many users have reported it here and in MS forums across this and all later versions of VS). I have confirmed that this bug still exists in the latest build of Visual Studio 2022. So clearly MS has no plans to fix it.
[Rant Mode Off]
Cheers,-=Cameron

Solution Folder Not Showing in Visual Studio 2010 - How Can I Make It Visible?

I created a new Blank Solution in Visual Studio 2010, then I did an Add New Project, and the Solution node no longer shows in the Solution Explorer.
Further, when I try to do a second Add New Project, I get the error:
Cannot add the item because the item to add it to is not a solution folder or the solution.
What happened to the Solution node?
Where is it, so that I can highlight it and add a second project to my solution?
Tools, Options, Projects and Solutions, check "Always show solution"
Trivial update:
I'm on Visual Studio 2010, Ultimate edition. Windows 2008 R2, Enterprise edition, SP1. My guess the difference between #arrocharGeek screenshot and mine is I turn off all the vista/win7/2008r2 eye candy to make it look "normal."
You need to show the solution as follows:
Navigate to Tools | Options
Check the "Show all settings" checkbox in the bottom left of the Options dialog
Navigate to the "Projects and Solutions" | "General" section
Check the "Always show solution" checkbox
The "Solution solution-name (n projects)" will now show, and you can highlight that node to Add New Project from there.
Trivial Update: My VS 2010 is SP1Rel, and I am on Win7 Enterprise SP 1:
In order to view Solution explorer. Go to View > Solution explorer.
Or press Ctrl+Alt+L.
And solution window will appear.

Visual Studio 2010 "Solution platforms" popup missing

I'm getting a weird problem with Visual Studio 2010 Premium. I use two PCs, on the first there is no problem on the second the "Solution Platforms" popup menu disappeared, the configuration is the same (Windows 7 x64). The problem occured when I opened a project from a mercurial repo, I was not able to restore the popup. I reset the Visual Studio settings and done a Repair from the installer. No change. If I create an blank project (framework 2.0, 3.0, 3.5, 4.0) the "Solution Platforms" popup is still missing.
Also if I change the target platform with Build --> Configuration Manager there is no effect on the build (no compilation for x86 for example).
Any ideas (no full reinstallation please ) ?
thank you.
ps : Screenshot of the bug
André
Try the following:
From the list, select "Customize..."
On the screen that appears, click the
"Add Command..." button.
Select "Build" from the Categories
list, then scroll to "Solution
Platforms" in the Commands list and
click "OK"
Close the dialog and check your list, it should now be available.
The accepted answer is the wrong way to restore the platforms combobox. What you should do is find the little dropdown menu next to the configuration combobox and choose "Add/Remove buttons" From that list, check "Solution Platforms" and everything will be in its rightful place :)

Auto select file in Solution Explorer from its open tab

Normally, many files in Visual Studio 2010 are opened in many tabs, while massively working on a project. Many times, I find myself right-clicking on a tab title and searching for Show/Select/Scroll-to this file in Solution Explorer, and I can't find it.
Is there a way to automatically select an opened file in Solution Explorer?
Another option is to bind 'View.TrackActivityInSolutionExplorer' to a keyboard short-cut, which is the same as 'Tools-->Options-->Projects and Solutions-->Track Active Item in Solution Explorer'
If you activate the short-cut twice the file is selected in the solution explorer, and the tracking is disabled again.
Visual Studio 2013+
There is now a feature built in to the VS2013 solution explorer called Sync with Active Document. The icon is two arrows in the solution explorer, and has the hotkey Ctrl + [, S to show the current document in the solution explorer. Does not enable the automatic setting mentioned above, and only happens once.
I don't know if you can do it on-demand, but you can enable the option "Track Active Item in Solution Explorer" (Tools->Options->Projects and Solutions->General) which will always select the active tab item in the solution explorer.
If you're using the ReSharper plugin, you can do that using the Shift + Alt + L shortcut or navigate via menu as shown.
This isn't exactly what you're looking for, but it would automatically select the "active" file in the Solution Explorer:
Tools-->Options-->Projects and Solutions-->Track Active Item in Solution Explorer.
simply Tools--> Options--> Projects and Solutions--> Track Active Item in Solution Explorer
The best option now is to install the Microsoft Visual Studio add on called Productivity Power Tools.
With this comes "Solution Navigator" (alternative to Solution Explorer, with a lot of benefits) - which then you can use to filter the files to only show "Open". You can even filter files to show "Edited" and "Unsaved".
It's in VS2012 - Specifically the 2-Arrow icon at the top of the solution explorer (Left/Right arrows, one above the other). This automatically jumps to the current file.
This icon is only visible if you've got Track Active Item in Solution Explorer disabled.
In Visual Studio 2012, the same can be done using the "Sync With Active Document" option in Solution Explorer
In VS 2019 select Tools > Options and then tick "Track Active Item in Solution Explorer"
The Tab Studio plugin adds "select in solution explorer" to the right click menu on tabs.
I've put in a feature request for this very feature. Although I know this isn't an answer in itself it is a step in the direction of being able to get this feature implemented. Any votes it it may help to get Microsoft's attention.
As far as I'm aware of though there is no way to do this other than possibly writing a macro or creating your own add-in/extension to Visual Studio.
There's a very nice extension to VS2010, which does exactly this: Solution Explorer Tools.
This extension adds a button which selects the current file in the solution explorer, as well as convenient buttons for collapsing and expanding projects.
That's the screenshot of the answer for your question.
In visual studio 2022
Similar to this answer https://stackoverflow.com/a/8473574/13275637
You need to tick Track Active Item in solution Explorer

Resources