如何用 C# 模拟/调试 Windows CE 5.0 应用程序?

发布于 2024-07-25 19:07:53 字数 284 浏览 6 评论 0原文

这是我的问题。 我目前正在尝试为 Windows CE 5.0 设备开发 .Net Compact Framework 2.0 应用程序(用 C# 编写)。

首先:如何在 Visual Studio 2008 中调试/模拟应用程序? 我的意思不是调试设备上已部署的应用程序,而是调试桌面上的版本。 我对原型设备的访问权限有限或无法访问。

其次:如何将它与 Platform Builder for Windows CE 5.0 制作的操作系统映像集成? 我需要吗?

感谢您的时间

Here's my problem. I'm currently trying to develop a .Net Compact Framework 2.0 application (in C#) to a Windows CE 5.0 device.

Firstly: How do I debug/emulate the application in Visual Studio 2008 ? I doesn't mean debugging an application already deployed on the device, but debugging the version on my desktop. I have limited or no access to the prototype device.

Secondly: How do I integrate it with the OS image made by Platform Builder for Windows CE 5.0 ? Do I need to ?

Thank you for your time

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

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

发布评论

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

评论(3

我不咬妳我踢妳 2024-08-01 19:07:53

你有几个选择。 一种方法是安装模拟器 BSP,推出您自己的模拟器映像,构建自定义 SDK 并安装它,然后针对该模拟器进行调试。 做起来相当简单。

话虽如此,我还是不会这么做。 更好的选择是购买便宜的 WinCE 设备,例如 eBox 4300 快速启动套件。 瞄准真铁更加容易、更快、更可靠。

至于集成应用程序,它就像任何其他应用程序一样。 确保您的操作系统设计中包含目录中的 CF 组件,然后将您的应用程序添加到 PROJECT.BIB(以及 REG 和/或 DAT 文件,如果需要)并再次运行 makeimg。

You have a few options. One would be to install the Emulator BSP, roll your own emulator image, build a custom SDK and install it, then debug targeting that emulator. It's fairly simple to do.

That said, I still wouldn't do it. A far better option is to just go buy a cheap WinCE device like an eBox 4300 jump start kit. It's way easier, faster and and more reliable to target real iron.

As for integrating the app, it's like any other. Make sure you have the CF component included in your OS design from the Catalog, then add your app to your PROJECT.BIB (and REG and/or DAT files if needed) and run makeimg again.

悲凉≈ 2024-08-01 19:07:53

好的,谢谢大家的快速而好的答案。 尽管我找到了自己的解决方案,但您的解决方案可能和我的一样有效。

基本上我没有告诉你(因为我也不知道)是我实际上不需要模拟操作系统,我只需要使用框架。 我找到了“模拟”这种情况的最佳方法 此处

另外,我发现将应用程序部署到设备的最简单方法是使用 ActiveSync,并且我发现 正是适合它的 (MSDN) 文章

Ctacke:这可能是由于我只学习这种类型的开发,我在创建/安装“我自己的 SDK”时不知何故犯了错误,因此 Visual Studio 停止正常运行。 但当然,经过一些挖掘,这种情况就消失了。 不管怎么说,还是要谢谢你。 我喜欢使用测试设备进行开发的想法,不幸的是,我工作的公司已经选择了设备,但他们还无法向我提供用于开发目的的原型。

Frans,我还没有找到你的 CE 模拟器,但我很确定我没有找到足够的东西,所以谢谢。

Okay, so thanks everyone for the quick and nice answers. Although I've found my own solution yours may be as valid as mine.

Basically what I didn't tell you (because I didn't really know it either) is that I didn't actually need to emulate the OS, I only needed to work with the framework. I found the best way to "emulate" such situation here.

Also, I found that the easiest way to deploy the application to the device is to use ActiveSync and I found just the right (MSDN) article for it.

Ctacke: It's probably due to my only learning this type of development, I somehow made an error while creating/installing "my own SDK" so the Visual Studio stopped functioning properly. But of course some digging made that go away. Thanks anyway. I liked the idea of developing with a testing device, unfortunately the company I work for already picked a device but they couldn't issue me a prototype for development purposes yet.

Frans, I haven't found your CE simulator, but I'm pretty sure that I didn't look for it enough so thanks.

巡山小妖精 2024-08-01 19:07:53

您应该使用CE SDK 附带的模拟器。 您可以直接从 vs.net 使用它,它具有所有 win CE 功能。 然后,调试将在该模拟器上进行,因此您可以单步调试代码,就像它在设备上运行一样。

You should use the emulator which comes with the CE SDK. You can use that directly from vs.net, and it has all win CE features. DEbugging then works on that emulator, so you can step through your code as if it's running on a device.

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