How to make Error List window automatically active during compilation in visual studio? - visual-studio

How to make Error List window automatically active during compilation in visual studio instead of default Output window?

Options / Projects and Solutions / General / Always show error List...
You can also uncheck the "Show Output window when build starts" if needed.

Related

How to select debug profile in Visual Studio?

I have a .NET Core 3 (not ASP) project in Visual Studio 2019 that has two different launch profiles:
But whenever I launch my project, it always uses the first profile, even if I have the second profile selected in my project settings. How do I tell Visual Studio to actually use the other launch profile?
EDIT: This is what my toolbar looks like:
I have no dropdown to select a launch configuration. I found the "Start Debug Target" command and can add that to my toolbar, but it doesn't have a dropdown either, it looks just like the regular start button.
In projects you can configure the profile, not select it.
In order to select a profile you should choose it from dropdown list next to start button:
EDIT
On my VS the button is called Debug Target and is placed under Standard section in toolbar.
However, there's something fishy about this button in visual studio. When I removed button from visual studio I couldn't find it among other commands to readd it. After some googling I even found out there were problems with this in past.
https://developercommunity.visualstudio.com/content/problem/323626/if-you-remove-debug-target-from-toolbar-you-can-ne.html
Ewentually I found out two ways to bring it back.
Reset the standard toolbar
Add it from Add or remove buttons section next to standard toolbar

Express version missing Debug-> exceptions menu

I use. VS 2013 Express
When debugging, I need to stop automatically on exceptions.
try to follow this.
http://msdn.microsoft.com/en-us/library/d14azbfh.aspx#AddExceptionsCommand
It says I need to add Exceptions command to the Debug menu
On the Tools menu, click Customize.
The Customize dialog box appears.
Click the Commands tab and, in the Menu bar list, click Debug.
Click Add Command.
In Categories in the Add Command dialog box, click Debug.
In Commands, click Exceptions and then click OK.
But in stage 6, in Commands there is no Exeptions
Also I tried to remove Enable just my code, And it didn't work.
Just a FYI ---
Im am using VS Express 2010 (VB) and didn't see the debug exceptions.
Based on the screen shot above I just pushed CRLT-ALT-E and it opened.. (!)
Its a bit unclear to me, if VB 2010 Express has this option or not, or how to unhide it, but the key click combo opened it.
I was then able to turn off the option I needed
In my case the "PInvokeStackImbalance"
enter image description here
Another user has reported the missing 'exceptions' on the 'debug' menu to Microsoft and actually got an acknowlegement from Microsoft (though not from the product team and not confirmation that it is a bug).
https://connect.microsoft.com/VisualStudio/feedback/details/882780/exceptions-comman-missing-in-vs-2013-express-for-web
For what it's worth, you can add your vote to this report at that site; I'm experiencing this problem and I have done so too.
Here's a potential work-around: the 'exceptions' is present in the Visual Studio Express for Desktop. And you can install that edition side-by-side with Web edition. If you can figure out a way to invoke your project executable from the debugger in the Desktop edition, you'd have control over exceptions there.
The exceptions menu isn't shown in Visual Studio Web Developer Express. It is only shown in Visual C# Express.
You can however break on all exceptions. You can try to turn off "Just My Code" debugging, which will catch exceptions thrown in CLR code and linked libraries.
To do this, open Tools -> Options -> Debugging -> General, and uncheck "Just My Code" (or Enable Just My Code).
if it doesn't work try
Debug -> Exceptions -> Common Language Runtime Exceptions - check "when thrown"
if you don't see exceptions try to change your settings following this guide
Refer here for documentation.
update
if it still not working try this
Tools menu >> Import and Export Settings >> Reset all settings. Then choose C# Development Environment.
Many of the customization and integration features for Visual Studio's IDE are not available in the free Express editions, but you should be able to get to the Exceptions menu easily enough without using them.
Press F5 to start debugging, then select Debug / Exceptions... Turn on the check box for "C++ Exceptions" "Thrown". Hit "OK"

Visual Studio 2012 runs app with existing errors

my Visual Studio 2012 Ultimate compiles even though there's an error. It takes the old .exe then. I remember, that there's a popup that asks - "Do you want that we take the old .exe" - or something similar and I probably clicked yes there by mistake. However, I can't find that settings and therefor can't deactivate that.
Does anyone know where I can do that?
Tools > Options > Projects and Solutions > Build and Run:
"On Run, when build or deployment errors occur:"
-> "Prompt to launch"
edit: You may need to click "Show all settings" for the "Projects and Solutions" category to be visible.

How do I make Warning messages stop printing in Visual Studio 2010

Visual studio 2010 output window is constantly printing out "Warning:" message on output window. I would like to make it not print out those messages. How should I accomplish this?
Thanks. (of course getting rid of the message is the best solution but at the moment I just want to hide those messages)
In the properties dialog for your project, you can change the warning level to 0 to turn off all warnings.
Instructions can be found here:
Open the project's Properties page
Click the Build property page.
Modify the Warning Level property.

No option to suppress StyleCop warnings in context menu

I have just installed StyleCop v4.7.36.0 and am using Visual Studio 2010.
When I run StyleCop on the solution or individual project the warnings are being correctly reported in the Error List window.
When I right click, however there is no option to suppress the warning message(s).
Is there any way to fix this? I really don't want to have to resort to manually editing the GlobalSuppressions.cs file.
Right click on your project inside visual studio project explorer. And then to StyleCop settings. You can disable any warning you want from the window that is shown.
You can find the specific warning from the code as it appears in your picture. So for example to disable the first warning show, you'd go to warning 1633 in the StyleCop settings window and just uncheck what you want.

Resources