奇怪的资源字典的警告出现在输出窗口即使在WPF跟踪设置都关闭出现在、字典、奇怪、窗口

2023-09-03 03:25:48 作者:谁都像你但不是你

我在使用Visual Studio 2011测试版的安装四月2012。我更新有我调试选项 - >输出窗口> WPF跟踪设置所有的值,包括资源字典翻off.But我仍然看到警告信息像

I am using Visual studio 2011 beta with the april 2012 update installed .I have my Debugging options -> Output window > WPF trace settings all the values including Resource Dictionaries turned off.But I still continue to see warning messages like

System.Windows.ResourceDictionary Warning: 9 : Resource not found; 
     ResourceKey='CheckBoxCooperStyle1'

如何调试这类警告只要不误报?

How to debug this type of warnings provided they are not false positives ?

推荐答案

从微软支持团队感谢回复的更新。我是怕了,因为我的测试中发现了类似的结果。它似乎还有一些内部WPF跟踪code的不符合规定的设置。在此期间,我们没有比找到的资源词典(或相关类型),并纠正了跟踪输出警告有关问题的其他任何建议。

Reply from Microsoft support team "Thanks for the update. I was afraid of that, since my testing found similar results. It seems there is some internal WPF tracing code which does not adhere to the specified settings. In the meantime, We don’t have any suggestions other than finding the Resource Dictionary (or the relevant type) and correcting the issues that the trace output is warning about.

如果调试器被附连,总是会有一些WPF跟踪不管在IDE指定的设置(或在app.config)中发射。不幸的是,您收到的输出似乎属于这一类。遗憾的是,有没有办法关闭被发射的所有的WPF跟踪输出

if a debugger was attached, there will always be some WPF tracing emitted regardless of the settings specified in the IDE (or in the app.config). Unfortunately, the output you are receiving appears to fall into this category. Regrettably, there is no way to turn off all the WPF trace output from being emitted

我们当然可以立案的产品这在将来的版本被认为是一种功能要求,但除此之外我没有看到一个方法可以让你避免在当前版本中的问题。

We could certainly file a feature request for the product for this to be considered in a future release, but otherwise I don’t see a way for you to avoid the issue in the current release.