How can I clear the Warnings sections of the error

2019-04-04 17:54发布

问题:

Specifically, once I get the WCAG Anaylsis warnings for a website into my warnings window I can't get rid of them, until I close down studio. When building another project in the same solution they stay there.

Anyone got any ideas?

回答1:

I came across this question yesterday looking for an easy answer. While closing the solution works for me, and then rebuilding only the solution I want to see warnings on, I found that doing a "Clean Solution" (right-click solution, select "Clean Solution") will clear the Error List pane (including warnings).



回答2:

Close all open documents and rebuild the solution to get rid of those warnings. I have also that problem on webprojects and WCAG-varnings, but they disapear when Im doing a rebuild.



回答3:

Unload/Reload project

I regularly get stubborn errors that do not clear (in the VS2010 Error List with MS Ajax Minifier). I found that Unloading and Reloading the project clears the errors; this works more easily than closing and re-opening the solution. This is less than ideal, but is the best solution I've found to work around the buggy interaction between VS2010 and MS Ajax Minifier.

Error 1 The Microsoft Ajax Minifier does not have permission to write to Content\ ... .min.css



回答4:

I know this is an old thread but was having the same problem. I found that the warnings would dissapear by doing the following:

  1. Closing the documents in question
  2. Clicking on the Output tab
  3. Rebuild the application

Now when you click back on the Error List tab and look at warnings, they should be reset.



回答5:

You can permanently disable warnings:

website -> property pages -> accessibility -> uncheck "show warnings"

Otherwise just close all files

window -> close all documents


回答6:

Just close Visual Studio and re-open?



回答7:

Just click on the "Warnings" button at the top of the window to hide them.