Windows CE 项目存在库问题

发布于 2024-09-29 02:52:28 字数 346 浏览 3 评论 0原文

我正在开发一个 Windows CE 应用程序,它使用我们公司其他部门提供的一些库。

当我在“我的电脑”(在标准 PC 上运行的 .NET 紧凑型应用程序)上部署应用程序时,一切正常,但当我部署到设备时,应用程序在尝试使用库中的方法时会挂起。系统也挂起。我的 Visual Studio 2008 有时会挂起,但有时会抛出异常“TypeLoadException:无法从程序集 Culture=neutral,PublicKeyToken=nu 加载类型”。

我无法包含 .NET Compact Framework 3.5,因为图像无法编译,所以我使用 2.0 版本。我使用带有部署 .NET 框架选项的 Visual Studio 2008。

I am developing a Windows CE application which uses some libraries provided by other parts of our company.

When I deploy my application on "My Computer" (.NET compact application running on standard PC), everything works, but when I deploy to the device, the application hangs when trying to use methods from the library. The system also hangs. My Visual Studio 2008 sometime hangs, but sometime throws an exception "TypeLoadException: Could not load type from assembly Culture=neutral, PublicKeyToken=nu".

I couldn't include .NET Compact framework 3.5 because the image wouldn't compile, so I am using version 2.0. I use Visual Studio 2008 with deploy .NET framework option.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

空宴 2024-10-06 02:52:28

问题很可能出在您正在使用的库的版本上。请交叉核对一下。

希望这个链接对您有所帮助。

Most probably the problem is with version of the library you are using. Please cross check it.

Hope this link will help you.

裂开嘴轻声笑有多痛 2024-10-06 02:52:28

我有点困惑。

首先,“我们公司其他部门提供的”库是针对什么构建的?它们是 Compact Framework 程序集(必须是)吗?他们是根据什么版本的框架构建的?如果您不知道,Reflector 可以告诉您这一点。

第二,为什么用3.5编译不了?您看到什么类型的错误?代码应该 100% 向前兼容,因此如果无法构建,则会出现危险信号。

最后,目标硬件上安装了什么版本的 CF?例如,您是否正在尝试将 CF 2.0 应用程序推送到已安装 CF 3.5 的设备?如果是这样,您是否有一个提供框架兼容性选项的 app.config 文件,以便它知道它可以运行您的程序集?

I'm a bit confused.

First of all, what are the libraries "provided by other parts of [y]our company" build against? Are they Compact Framework assemblies (they must be)? What version of the Framework were they build against? Reflector can tell you this if you don't know.

Second, why can't you compile it with 3.5? What sort of errors are you seeing? The code should be 100% forward compatible, so if it won't build, there's a red flag going up.

Lastly, what version of the CF is installed on the target hardware? FOr example, are you trying to push a CF 2.0 app to a device with CF 3.5 already installed? If so, do you have an app.config file that provides the framework compatibility options so it knows it can run your assembly?

婴鹅 2024-10-06 02:52:28

问题是库是针对 3.5 目标框架编译的,而使用它们的应用程序则形成 2.0 框架。在这种情况下,3.5 框架不会被部署,并且一旦调用库方法,应用程序就会停止工作。

The problem was that libraries were compiled with for 3.5 target framework, and the application which uses them form 2.0 framework. In that case, 3.5 framework wasn't depoloyed and application would stop working as soon as call to the library methods was made.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文