"Select Startup Item" command / drop-down not showing on Standard toolbar in Visual Studio - 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.

Related

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

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.

How to reset the context menu in VisualStudio to have default items?

Am using VisualStudio 2013, update2. I am facing the below issue when I opened a project in VisualStudio today, I noticed on right clicking a project in the SolutionExplorer the context menu have a lot of options that even have scrolling now. Now I have to scroll down everytime to build or clean a project.
Earlier it was like a short menu like below.
I have not changed any settings but don't know why am facing this issue. I tried to customize the context menu command and chose (Project and solution context menus | Project) from the drop down, but that didn't worked out as it is automatically reset to tfs on clicking the close button. Does any one have idea about how to rectify this?
Note: The context menu has changed only for the projects inside the solution. On right clicking the solution name in solution explorer, I am still getting the same old menu.
From looking at your context menu screenshot, it looks like you have some extensions installed that have introduced these commands. Try disabling some or all of them in Tools > Extensions and Updates Manager to see which ones belong to which extension. There unfortunately isn't a way right now to customize this context menu.
Thanks,
Cathy
Visual Studio IDE Team

Visual Studio 2012 "Show All Files" button missing

In my solution I have three projects: Console application, class library, and a website project.
The Show All Files button is visible on the console and class library project, but soon as I click on the website project the button disappears.
I am running Visual Studio 2012.
I just got the same problem "Solution Explorer toolbar missing" eg. "Show all files". Here's what I did:
Right click your "Solution".
Select "New Solution Explorer View". This will pop-up a new "Solution Explorer" window with toolbars in it.
Close you original "Solution Explorer" window.
Click on folder which must contain target file and Solution explorer properties will be changed. There you can find Refresh button and Show all files button.
Check this post:
Improved Solution Explorer in Visual Studio 2012 to Improve Productivity
"Show All Files" is not shown in a Web Site Project because it's not needed and all files are already shown in the Solution Explorer. I think that this behavior is the same for older versions of VS
In Solution Explorer, click on a project, and then the 'Show All Files' button will appear.
If you are in a WebSite project all files are shown by default. If there are some missing (added during debugging etc), just hit the refresh button on the top of the solution explorer and they should appear.
None of the above answers worked for me. If this is the case for you try right-clicking on any file in your project, then choosing "Show all files". The "Show all files" icon should now appear on this and all subsequent Solution Explorer windows.
YMMV, be kind. :-)
The "Show All Files" auto hides.
Click on the folder that has the hidden file, the button should show up.
By clicking on the project (the folder under the solution) the solution explore checks if all sub folders has hidden file, this will prompt the button to be revealed.
If you want to get Show all file menu just hide the solution explorer and open it fom view=>Other Windows=>Solution Explorer and clik it it will show all files menu
if you click on solution name in "solution explorer" maybe you will can't see "Show all files" button. because maybe added F# or website project in solution.
if you want see "Show all files" button, you must click on project name which is C# or native C++ or C++.net.
try to open any file use ctrl+alt+a . once a file will open "show all" button will appear automatically.

Adding context menu for VS 2010 Add-In on loading

I'm creating an Add-In for Visual Studio 2010.
I want to add the context menu item to the tab during Add-In loading
(in OnConnect method of the Add-In):
I do know how to add the menus using CommandBars.
I already added commands into "Tools" and "Solution Explorer" menus.
I just cannot find the CommandBar responsible for the menu, I need.
Can anybody help me?
Solution found.
You can enable logging of chosen menus.
Details:
http://blogs.msdn.com/b/dr._ex/archive/2007/04/17/using-enablevsiplogging-to-identify-menus-and-commands-with-vs-2005-sp1.aspx
http://blogs.msdn.com/b/dr._ex/archive/2007/04/17/using-ivsproffercommands-to-retrieve-a-visual-studio-commandbar.aspx

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 :)

Resources