奇怪的资源字典的警告出现在输出窗口即使在WPF跟踪设置都关闭 [英] Strange resource dictionary warnings appear in output window even when the WPF trace settings are turned off

查看:206
本文介绍了奇怪的资源字典的警告出现在输出窗口即使在WPF跟踪设置都关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用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.

这篇关于奇怪的资源字典的警告出现在输出窗口即使在WPF跟踪设置都关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆