How do I make Warning messages stop printing in Visual Studio 2010 - 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.

Related

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.

how to make visual studio output window editable

I am using visual studio for compiling java programs via external tool.Visual studio output window shows the results.But i cannot input any data through output window like in cmd.How to make output window editable? If i attempt to give an input, It shows read-only.
I'd say it's read-only by design. You can't change it, you need to fix the tool.

Visual Studio output window- what goes there and why?

Can someone please explain to me what goes to the Output window in VS? Where do the messages there come from and do they have other use other than for debbuging?
Thanks.
The Output window is a set of text panes that you can write to and read from. Visual Studio defines these built-in panes: Build, through which projects communicate messages about builds, and General, through which Visual Studio communicates messages about the integrated development environment (IDE). Projects receive a reference to the Build pane automatically through the IVsBuildableProjectCfg interface methods, and Visual Studio offers direct access to the General pane through the SVsGeneralOutputWindowPane service. In addition to the built-in panes, you can create and manage your own custom panes.
Output Window (Visual Studio SDK)
This panel shows the actual info, that is spit from your application to the console (no matter debug or run mode). Also building, rebuilding and cleaning your project is described as operations there.
Check F1 for more info ;)
By default it either shows output from the build process, or debugger output. You can use OutputDebugString to display text in the output window while debugging.
There's not much else you can do with it without using an Add-In for Visual Studio.

Visual Studio not displaying compile time errors in editor

For example, when I write:
string x = "turtle";
x.Go();
There is no red squiggly line detecting the absence of the Go() method on String.
Only when I compile does the error get detected.
I've just upgraded to Windows 7, I have Visual Studio 2008.
In my old environment the errors were detected before the actual compile.
Is there a setting that I am missing?
EDIT: "Tools -> Options -> Text Editor -> C# -> Underline errors in the editor" is checked.
I dont have the "Live Semantic" option. Maybe I need to go to SP1?
You need to turn on the underline errors in the editor and show live semantic errors options in Visual Studio.
These options can be found here:
Tools > Options > Text Editor > C# > Advanced > Editor Help
Edit: You will need to install SP1 for this functionality to work.
Select Tool -> Options, then Text Editor. Under the language you are using (ie C#), go to the Advanced and make sure the Underline errors in the editor and Show live semantic errors are checked
Stop the project.
Open Folder Project.
Delete .vs folder (he is a hidden folder)
Then restart Visual Studio
EDIT:
This approach has been around since the 2012 version of Visual Studio. This folder consists of keeping all breakpoint information and other settings saved. It is not known why, the configurations arrive at a time when the errors of compilations no longer appear. Deleting the .vs folder will "reset" your breakpoints forcing you to do them again if you need to.
For visual studio 2015 and higher:
Go to: Tools > Options > Text Editor > C# > Advanced > Editor Help
Then select: Enable Full solution analysis
I had the same issue and had SP1 installed and had Underline errors in the editor and Show live semantic errors checked in VS2008's options.
My solution was to download Microsoft Visual Studio 2008 Service Pack 1 (Installer) and re-install the package. It wasn't classified as a 'repair' or a 're-install' despite the fact it was already installed, but it worked.
Restarting VS solved my problem once.
my solution; I know it won't help like 80% of the viewers, but for the sake of who it will:
i have had a lot of noise in the IOS part of the solution, a VS bug that showed a lot of errors that weren't supposed to appear, so I just deleted the IOS part because I didn't really needed it as I didn't even had a Mac server to test it on... Something happened after that and the squiggly line returned! Seriously, VS team, fix your bugs...
JavaScript Type Checking
Sometimes type checking your JavaScript code can help you spot mistakes you might have not caught otherwise. You can run the TypeScript type checker against your existing JavaScript code by simply adding a // #ts-check comment to the top of your file.
// #ts-nocheck
let easy = true;
easy = 42;
Tip: You can also enable the checks workspace or application wide by adding "javascript.implicitProjectConfig.checkJs": true to your workspace or user settings and explicitly ignoring files or lines using // #ts-nocheck and // #ts-ignore. Check out the docs on JavaScript in VS Code to learn more.
In my case the problem was that I created a file with .s extension instead of .cs an then changed the extension to .cs once it was created.
I deleted it and created again correctly and now VS is underlining the errors in this file.

How to make Error List window automatically active during compilation in 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.

Resources