I have a solution with about 20 projects (that use Devexpress controls) in and when I do a normal solution build (ctrl-shift-B) it says everything is completed sucessfully when in actualy fact it has done nothing. To get it to build i have to right click on the solution and use the batch build option.
I've tried deleting the solution and regetting from TFS and i've even gone as far as reinstalling VS!
Anyone got any clues as to what is going wrong?
Sorry should have added that also tried to build from the main menus aswell.
I've had similar issues. It's a long shot, but right-click your solution and go to Properties -> Configuration Properties. Check to make sure all of your projects have the "Build" option checked.
Perhaps Ctrl+Shift+B has been assigned to one of the "check-to-see-if-it-is-needed-before-building" type of functions?
Check in the keyboard setting:
Right-click the toolbar
Select Customize in the popup menu
Click the Keyboard button in the lower right corner of the dialog
In the new dialog, in the "Press shortcut keys", a bit to the right and below the center, hit Ctrl+Shift+B
Verify that it is bound to Build.BuildSolution
at least that is what it is bound to for me. I notice there is an action named Build.RebuildSolution as well, you should experiment.
Related
Where is the Sync with active document button in Visual Studio?
I know that I can press Alt + Shift + L and I will get the Sync with active document.
I also know that I can enable in the Options the feature to work every time I focus on another file.
But I can not find a button in the VS interface to do that. Is it even present? I would expect such a button be somewhere in the top of the interface of the VS. Somewhere near the comment/uncomment buttons (that is just my feeling that it is there, I have no proofs or reasons to think so).
I know this might sound silly, but I spent about a day trying to figure out where the button went in the latest VS2019 (Version 16.10.2) update.
After one complete day of using the keyboard shortcut instead, I realised that the Icon has changed to a different Icon.
Note: The Track Active Item in Solution Explorer checkbox should be unchecked to see this Icon, as posted by #Sandro Stadler.
Pretty simple.
If you check this option, the document and solution explorer will be automatically synchronized and the icon will be hidden.
Deselect to show the icon in the solution manager.
In VS 2019 it is in the Solution Explorer window:
I was messing around with my toolbars and menus in Visual Studio 08. I noticed that they were behaving strangely. When I closed the "Customize" dialog, my 'Tools' and 'Help' menu were gone (perhaps more, I can't remember what else was there). I don't want to reset everything, as I have been curtailing the VS environment to my exact liking for over a year now, and I have never saved those settings. I have lots of custom commands quirk fixes all around. I don't relish starting over. I guess the lesson is that I should be saving my settings regularly.
Does anyone know how to get the menus back? I didn't even know it was possible to remove the actual menus (not toolbar items)!
Thanks,
Ryan
You could try exporting settings from a clean install, find the section with the menus and only import those? I believe the settings file is registered to visual studio so double clicking it should start the import process.
Not to mention, this would become good practice for exporting and backing up your own settings...
Try to right click on a toolbar click on Customize. Then you can select Menu Bar and click on reset. Not sure if it will work, but it's worth a try.
You can reopen the toolbar by going to "Window > Reset window layout".
I've only tested it with VS 2019.
BUT, IDK if that's what you're asking about...
On Eclipse, whenever I double click a tab, it fills the workspace (by hiding all other views like project tree, console, etc).
Is there any way to do this on Visual Studio?
Note: i'm not looking for full screen, just want a way to declutter the workspace but still have access to menus.
Are you after this?
Set shortcuts for the Window.AutoHideAll function and for the Window.ResetWindowLayout function. In order for the ResetWindowLayout to work, you have to export your settings (make sure you select "All Settings") with all windows expanded and then import them again.
ResetWindowLayout will restore all windows to the way they were the last time you imported your settings.
Not with double click on tab, but you can do the same with Shift+Alt+Enter key combination.
This keyboard shorcut was changed to F11 from 1.9.1 vscode version.
All keyboard Shortcuts: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
I was looking for that, as well, and I now just got used to using full screen (Shift+Alt+Enter), which hides a little too much, which you seem to think, as well, but does in fact still show the menus.
Looks like drby got it on this one. Just FYI. I pinged the VS team to ask about this and here is the response:
"There is no way to reverse the command automatically. For it to work as a toggle we would need to save which toolwindows were auto hidden and which ones were not when the command was run, which we don’t do (it would cause lots of interesting persistence questions, across profiles and VS sessions)."
The idea of a "Unhide All" command is what I suggested. So if you hide all then you can unhide all as well. There might be some windows you don't want to unhide but the 1 or 2 extra windows is better than not having an unhide IMHO.
Every time you start Visual Studio, the first time you click "Add Reference" to add a DLL reference to a project, by default, the .NET tab on that dialog box is selected. As most people reading this have probably noticed, it can take a long time -- often more than 30 seconds -- for the full list of .NET components to fill in.
Because of the way we're designing our solutions, though, about 80% of the time, I want to select either from the "Projects" tab or from the "Browse" tab.
Is there a setting anywhere in Visual Studio that will let me make "Projects" be the first tab that loads up? Does anyone know any other, hidden tricks to accomplish the same effect?
I use this tip to do this in a different way. Open your Object Browser (Cntrl + Alt + J). Change Browse dropdown to "My Solution". Select the project you want. On Toolbar, click "Add to References in Selected Project in Solution Explorer".
A neat work around which has saved me many hours.
If you have the PowerCommands for Visual Studio 2008 installed, there is functionality to copy-paste references between projects, as well as copy-paste individual projects as references, all without opening the references dialog.
I have never found anywhere that allows you to change the default tab. And yeah, it's annoying how long that window can take to load. I think this is something that we just have to live with.
Tuna Toksoz has created a Fast Add Reference dialog plugin for Visual Studio.
http://devlicio.us/blogs/tuna_toksoz/archive/2009/06/18/vs-addin-fast-add-reference-dialog-no-more-coffee-break.aspx
Another tip you might consider is that if you reference a type in another project, ReSharper will notice it and offer to add it to your references for you.
With this, I never visit that tab unless I have file dll references to add.
I am afraid the answer, as far as I can tell, is no. I even took a trip through the registry to determine if there was someway to reorder the tabs. You might be able to do it with a hex editor but I would advise against that.
My "Start debugging" button and element menu are greyed out... but only on one of my projects (an ASP.NET website). I have no idea what I have done to disable it.
I already checked everything in the Property page of both the solution and project. I even compared it to another project, but nothing seems to do the trick... maybe I missed an option ?
It sounds like your startup projects are all set to "start without debugging", since that would cause the button and element to grey out.
This can be fixed from Solution -> Set StartUp Projects.
Is it a startup project? You can only debug projects that can actually be started.
Right click on the project and click properties. Then click on Start Options (or something similar) to see the settings. If it's an executable project, you probably want to choose the option that will start the project output.
If you're able to start the project, you can usually attach the debugger using Ctrl+Alt+P (Or choose Attach to Process from the Debug-menu) and then choose the process from the list that comes up.
Do you have the COM+ Event System service running?