在发布模式下显示错误

在发布模式下显示错误

本文介绍了在发布模式下显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我在调试模式下构建时添加了具有适当 DLL 和命名空间的 Listpicker 和 Datepicker,它运行良好,但在发布模式下,它在生成的页面(Mainpage.g.i.cs)中显示错误.错误消息是命名空间‘Microsoft.Phone.Controls’中不存在类型或命名空间名称‘ListPicker’(您是否缺少程序集引用?)

In my application I had added Listpicker and Datepicker with proper DLL and Namespaces while I build in debug mode it runs well but in Release mode it is showing error in the generated page(Mainpage.g.i.cs). The error message is "The type or namespace name 'ListPicker' does not exist in the namespace 'Microsoft.Phone.Controls' (are you missing an assembly reference?)

推荐答案

我在一个项目中也遇到了这种情况,我所做的只是从调试到发布.

This happened to me too on one project, and all I did was change from debug to release.

我通过简单地删除造成问题的提到的引用并将它们再次添加到项目中来修复它(只是简单的 dll 或通过 NuGet,无论您使用的是哪个).就这样解决了.

I fixed it by simply removing the mentioned references that are creating a problem and added them again to the project (just simple dll or via NuGet, whichever you're using). That solved it.

这篇关于在发布模式下显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 18:41