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

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

问题描述

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



经过一些研究,我提出了以下内容:
在发布模式下,Silverlight不会将包含实际错误消息的dll打包到xap中,以节省空间。



我已经找到OLD版本的解决方法,但是似乎是有SL 2和3运行时的开发版本,它会自动解决错误,但是我找不到SL 4的一个。



所以我的问题是这样的:



我需要做什么我的SL 4应用程序/电脑让我看到完整的,详细的错误,当它在释放模式?

解决方案

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


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"

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.

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.

So my question is this:

What the heck do I need to do to my SL 4 app / computer to let me see the full, detailed errors when it's in release mode?

解决方案

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天全站免登陆