WP7(1):未找到System.Windows.debug.resources?未找到、System、resources、debug

2023-09-03 12:36:26 作者:沉寂于曾经

当我跑我的WP7.1的应用程序,我得到这个错误。

When I run my WP7.1 app, I get this error.

文件或程序集名称System.Windows.debug.resources,版本= 2.0.5.0,文化= EN-US,公钥= 7cec85d7bea7798e',或者它的一个依赖,没有被发现。

File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.'

任何想法发生了什么事?

Any idea what is happening?

推荐答案

在我的经验是可以,如果你创建或发生使用一些框架元件(或任何依赖的对象为此事)在一个非UI线程。

In my experience that could happen if you create or use some Framework Element (or any Dependency Object for that matter) in a non-UI Thread.

简单地检查所有UI相关的任务是在UI线程上执行,如果没有,可以使用 Dispatcher.BeginInvoke 来发布他们的主线程。

Simply check that all UI-related tasks are performed on the UI thread, and if not, use Dispatcher.BeginInvoke to post them to the main thread.