visual-studio 如何清除 VS2008 中错误列表的警告部分?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/336854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 09:58:47  来源:igfitidea点击:

How can I clear the Warnings sections of the error list In VS2008?

visual-studiovisual-studio-2008wcag

提问by NikolaiDante

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.

具体来说,一旦我将网站的 WCAG Anaylsis 警告输入到我的警告窗口中,我就无法摆脱它们,直到我关闭工作室。在同一个解决方案中构建另一个项目时,它们会留在那里。

Anyone got any ideas?

有人有任何想法吗?

采纳答案by Jerad Rose

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

我昨天遇到了这个问题,寻找一个简单的答案。虽然关闭解决方案对我有用,然后只重建我想看到警告的解决方案,但我发现执行“清理解决方案”(右键单击解决方案,选择“清理解决方案”)将清除错误列表窗格(包括警告)。

回答by NoisyKeys

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.

我经常遇到无法清除的顽固错误(在 MS Ajax Minifier 的 VS2010 错误列表中)。我发现卸载和重新加载项目清除了错误;这比关闭和重新打开解决方案更容易。这不太理想,但它是我发现的解决 VS2010 和 MS Ajax Minifier 之间有问题的交互的最佳解决方案。

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

错误 1 ​​Microsoft Ajax Minifier 无权写入 Content\ ... .min.css

回答by Stefan

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.

关闭所有打开的文档并重建解决方案以消除这些警告。我在 webprojects 和 WCAG-varnings 上也有这个问题,但是当我进行重建时它们消失了。

回答by Mike Thien

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
  1. 关闭相关文件
  2. 单击输出选项卡
  3. 重新构建应用程序

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

现在,当您返回错误列表选项卡并查看警告时,它们应该被重置。

回答by Jon P

Just close Visual Studio and re-open?

只需关闭 Visual Studio 并重新打开?

回答by Hath

You can permanently disable warnings:

您可以永久禁用警告:

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

Otherwise just close all files

否则就关闭所有文件

window -> close all documents

回答by Jon Grant

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

只需单击窗口顶部的“警告”按钮即可隐藏它们。