Visual Studio - 我可以通过网络在 CE 设备上调试我的应用吗

问题描述:

我正在使用 Visual Studio 2008 为 Windows CE 开发应用程序.

I am developing an app for Windows CE with Visual Studio 2008.

如果我通过 USB 连接设备,我可以在设备上调试/部署我的应用程序.但是在 CE 设备上,USB 连接只是作为另一个具有私有 IP 的网络接口呈现.

If I connect the device via USB I can debug / deploy my app on the device. But on the CE device the USB connection is just presented as another network interface with a private IP.

现在我想知道是否可以通过 LAN 解除 USB 连接(我的 PC 和 CE 设备在同一子网中).

Now I am wondering If it is possible to dismiss the USB connnection an connect over the LAN (both my PC and the CE device are on the same subnet).

是的,我在工作时这样做.首先,您需要在设备上运行 IPConfig 并获取 IP.在 Visual Studio 的连接属性中设置 IP.接下来有两个可执行文件和一些您需要复制到设备的文件.. 这里应该解释一下

Yes it is possible, I do this at work. First you need to run IPConfig on the device and get the IP. Setup the IP in visual studio's connection properties. Next there are two executables and some files you need to copy to the device.. here this should explain

如何:在没有 ActiveSync 的情况下连接到 Windows CE 设备

只需执行这两个exe,您就应该能够连接.顺便说一句,通过以太网进行调试比 activesync 速度更快,错误更少

Just execute those two exe's and you should be able to connect. BTW, debugging over ethernet is much faster and less buggy than activesync