简体   繁体   English

Windows Embedded CE 6.0上的.Net Compact Framework开发

[英].Net Compact Framework development on Windows Embedded CE 6.0

I am busy developing a .Net compact Framework 3.5 application for Windows CE 6.0 and am really struggling to figure out how to get a development environment up and running to debug my code. 我正忙着为Windows CE 6.0开发一个.Net compact Framework 3.5应用程序,我真的很难弄清楚如何启动和运行开发环境来调试我的代码。

Creating the Visual Studio project and writing the code is not the problem. 创建Visual Studio项目并编写代码不是问题。 But now to press F5 and run this puppy in an actual Win CE 6.0 Emulator (or similar?!) is where I am getting stuck and I have Googled this subject to death and just not finding any good tutorials/documents/help on how to get it from 'n Visual Studio project to debugging the project (or even running a simple hello world) in Win CE 6.0. 但现在要按F5并在实际的Win CE 6.0模拟器(或类似的?!)中运行这只小狗是我陷入困境的地方我已经用Google搜索了这个主题并且没有找到任何好的教程/文档/帮助如何从Win Studio 6.0中的'Visual Studio项目到调试项目(甚至运行一个简单的hello世界)。

So my question is this. 所以我的问题是这个。 Can anybody please point me in the direction of a good tutorial (or provide one your selves) to get a Win CE 6.0 dev environment up and running. 任何人都可以指向一个好的教程(或提供一个你自己)的方向,以启动和运行Win CE 6.0开发环境。

Perhaps I am missing something and it just is not possible to connect and debugging to Win CE? 也许我错过了一些东西,它是不可能连接和调试到Win CE? If that is the case, how do you recommend debugging Compact Framework code in general? 如果是这种情况,您如何建议一般调试Compact Framework代码?

The closest that I have gotten to a CE tutorial is this: http://tech-stuff-home.blogspot.com/2011/03/building-workspace-for-device-emulator.html And I have done all the steps in this tutorial to get Win CE build running, but the problem is that this does not connect Compact Framework development to the device created above. 我接受CE教程的最接近的是: http//tech-stuff-home.blogspot.com/2011/03/building-workspace-for-device-emulator.html我已完成所有步骤本教程是为了让Win CE构建运行,但问题是这不会将Compact Framework开发连接到上面创建的设备。 Edit: Even though I get CE running in a device emulator (using tutorial above), I cannot get this as a deploy option in the Device Emulator Manager when deploying a CF project. 编辑:即使我在设备模拟器中运行CE(使用上面的教程),但在部署CF项目时,我无法将其作为Device Emulator Manager中的部署选项。

You should make a connection using CoreCon. 您应该使用CoreCon建立连接。 Th3e steps involved are 所涉及的步骤是

  • Copy all of the CoreCon bits from your dev PC to the device (emulator is just a device) 将所有CoreCon位从开发PC复制到设备(模拟器只是一个设备)

在此输入图像描述

  • Verify/note the IP address of the device 验证/记下设备的IP地址

在此输入图像描述

  • Modify the connection in your PC to use that address for connecting 修改PC中的连接以使用该地址进行连接

在此输入图像描述

  • Run conmanclient2.exe (on the device) 运行conmanclient2.exe(在设备上)
  • Run cmaccept.exe (on the device) 运行cmaccept.exe(在设备上)
  • Verify the target device is set to the device you conmfigured 验证目标设备是否已设置为您配置的设备

在此输入图像描述

  • Test the connection from Studio 从Studio测试连接

在此输入图像描述

  • Debug 调试

It is not completely clear for me, but I understand you have no problems running in an emulator but you can't run nor debug the application on an actual device? 这对我来说并不完全清楚,但我知道你在模拟器中运行没有问题,但你不能在实际设备上运行或调试应用程序?

I cannot say what is actually causing it, but things I always check: 我不能说实际上是什么导致它,但我总是检查:

  • Device is not connected (can you see it in My Computer?) 设备未连接(您可以在“我的电脑”中看到它吗?)

  • Make sure you select the device option instead of the emulator (in VS2008 in the toolbar, you should have the 'Device' panel visible. In this panel you can switch devices and there you should have 'Windows Mobile 6 ... Device' selected. Try connecting from there without actually running the app. 确保选择设备选项而不是模拟器(在工具栏的VS2008中,您应该可以看到'设备'面板。在此面板中,您可以切换设备,并且您应该选择'Windows Mobile 6 ...设备'尝试从那里连接而不实际运行应用程序。

  • Check the Configuration Manager, set it to Debug (Release sometimes gives problems) 检查Configuration Manager,将其设置为Debug(Release有时会出现问题)
  • In the Project options, check the Devices tab. 在“项目”选项中,选中“设备”选项卡。 Select the appropriate Target for and optionally check 'Deploy latest version of .NET' to be sure all the files are there. 选择适当的Target并选择“部署最新版本的.NET”以确保所有文件都在那里。
  • Depending on your system OS, it might be needed to install ActiveSync (XP) or Windows Mobile Device Center (Vista and above). 根据您的系统操作系统,可能需要安装ActiveSync(XP)或Windows Mobile设备中心(Vista及更高版本)。 When it is installed, connect the device and let Windows install all the drivers needed. 安装后,连接设备并让Windows安装所需的所有驱动程序。 Then reboot and try connecting again. 然后重新启动并再次尝试连接。 In both cases connecting the device should invoke a response from Windows for connecting to your device. 在这两种情况下,连接设备都应调用Windows的响应以连接到您的设备。
  • Try using the Visual Studio Remote Tools, for example the Remote File Viewer. 尝试使用Visual Studio远程工具,例如远程文件查看器。 Does it work? 它有用吗?

Do you get any kind of error message when trying to connect? 尝试连接时是否收到任何错误消息? Unfortunately I never found a good tutorial on this subject. 不幸的是我从来没有找到关于这个主题的好教程。 I learned all this the hard way when I started CF development a couple of years ago. 几年前,当我开始进行CF开发时,我学到了很多这方面的知识。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM