Silverlight 4/.NET 4 调试资源字符串 [英] Silverlight 4 / .NET 4 Debugging resource strings

查看:15
本文介绍了Silverlight 4/.NET 4 调试资源字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了一件奇怪的事情.在我公司的一些服务器上,当打印出异常消息时(是的,不好,我知道.这是为了调试),实际的消息没有显示.相反,它显示外部字符串资源的键并说调试资源字符串不可用"

I recently encountered a strange thing. On some of my company's servers when an exception message is printed out (yes, bad, I know. It's for debugging), the actual message isn't displayed. Instead it displays the key for an external string resource and says that "Debugging resource strings are unavailable"

经过一番研究,我想出了以下几点:在发布模式下,Silverlight 不会将 xap 与包含实际错误消息的 dll 打包以节省空间.

After some research I've come up with the following: In release mode, Silverlight does not package the xap with the dlls containing the actual error messages in order to save space.

我找到了适用于 OLD 版本的解决方法,但没有适用于 4.似乎有 SL 2 和 3 运行时的开发者版本可以自动解决错误,但我找不到适用于 SL 4 的方法.

I've found workarounds for OLD versions, but nothing for 4. It seems like there are Developer versions of the SL 2 and 3 runtime which will resolve the errors automatically, but I cannot find one for SL 4.

所以我的问题是:

我到底需要对我的 SL 4 应用程序/计算机做什么才能让我在发布模式下看到完整、详细的错误?

推荐答案

您可以从 GetStarted 页面下载开发人员运行时(其中包含完整的异常字符串) - http://www.silverlight.net/getstarted/ - 搜索Windows 和 OSX 开发人员运行时",它位于页面底部附近.

You can download the developer runtime (which contains the full exception strings) from the GetStarted page - http://www.silverlight.net/getstarted/ - search for "Developer Runtimes for Windows and OSX", it's near the bottom of the page.

这篇关于Silverlight 4/.NET 4 调试资源字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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