Emulator from Windows CE 5.0 SDK can be easily used as a standalone device emulator, but if you want to use it for development it has to be connected to Visual Studio:
1. First of all you need to add “/Ethernet virtualswitch” parameter to target of emulator shortcut:

2. Now start emulator and add shared folder. To add shared folder use Emulator > Folder Sharing menu.
3. Use shared folder that will appear as Storage Card on emulator to copy all files from “C:\Program Files\Common Files\Microsoft Shared\CoreCon\1.0\Target\wce400\x86″ to Windows folder on emulator. These files should include:
ClientShutdown.exe
ConmanClient2.exe
CMaccept.exe
eDbgTL.dll
TcpConnectionA.dll
4. Run ConmanClient2.exe on emulator by using Start > Run > \Windows\ConmanClient2.exe:

5. Get IP address of emulator by double clicking on network icon:

6. Now you can verify emulator’s accessibility by pinging it from command prompt:

7. It’s time to change Visual Studio setup:
- Open Visual Studio options and navigate to Device Tools > Devices;
- Select “Windows CE 5.0 Device” from list of devices for Windows CE 5.0 platform and open it’s properties;
- Open configuration dialog by clicking on Configure button next to Transport combo box;
- And finally change IP address and confirm changes.



8. Now you need to run CMaccept.exe from Start > Run > \Windows\CMaccept.exe in order to change security on emulator.
9. And here comes most exciting moment. Now you can run your .Net CF project from Visual Studio. First run will take some time because Visual Studio will deploy and install .Net Compact Framework before running your application. Does it work? It should be, but you’ll need to pass one more mile to make environment more robust.
10. To avoid running CMaccept.exe every time you’ll start emulator you need to add special value to device’s register:
- Start Remote Registry Editor from Visual Studio Remote Tools;
- Select “Windows CE 5.0 Device” in device selection window and click OK. In case you have problems with connecting to emulator run CMaccept.exe right before hitting OK button;
- Navigate to HKLM > System key in device registry;
- Add new DWORD value in this key named “CoreConOverrideSecurity” with value 1.
11. The last thing is to save state of the emulator and make sure it will be restored on next start:
- Close emulator using “Save state”;
- Navigate to “My Documents\My Virtual Machines” on your computer;
- Find folder named like {641834F7-7BD7-4A7B-B2CE-D11A2C48E93E}. If you have several folders here, find the one updated the last (by the way besides .vmc file it will contain .vsv with saved state);
- Add state restoring parameter to target of emulator shortcut that looks like this “/vmid {641834F7-7BD7-4A7B-B2CE-D11A2C48E93E}”, but using your your folder name.
Congratulations! Enjoy development for Windows CE 5.0!