Visual Studio/Embedded development

Visual Studio
Not all versions of Visual Studio can work for a particular Windows CE version. In particular, VS 2008 is the upper limit for Windows CE 6 and 7, and only Visual Studio 2012-2015 can be used for Windows Embedded Compact 2013.

Windows
The major difficulty that you're likely to face is the restriction of Windows versions that you can use to develop and virtually test it.


 * 1) For Windows CE 7 and below, Virtual PC 2007 is needed. That version works properly only up to Windows 7. Windows 8 and 10 (32-bit) can install Virtual PC 2007, but you will most likely face issues with booting up Windows CE. The 64-bit versions cannot run Virtual PC 2007, and you cannot substitute with VMWare or VirtualBox (described below). Your only option in this case is to use VirtualBox/VMWare inside your host using a Windows 7 license or earlier, and install Virtual PC 2007 inside the virtual machine.
 * 2) For the 2013 version, Hyper V is used, which is only available on Windows Server or Windows 8 + (64-bit). You'll also need a processor which support SLAT.

Procedure

 * 1) Install the desired version of Visual Studio. Note that if you're only going to use Platform Builder, you can safely deselect the optional components. Install VS2005/VS2008 SP1 as needed.
 * 2) Install the Windows Embedded Compact 7 toolkit. While you should select the core components (Platform Builder, Compact Tool Kit and the Silverlight tools), you need not (and should not) download/install all the architecture packs unless you also plan to deploy onto a real device. For Virtual PC, the x86 pack is enough. [[File:Embedded7installer1.png]]
 * 3) Install Virtual PC 2007.
 * 4) Open Visual Studio and create a new Platform Builder project.
 * 5) In the next screen, select the Virtual PC BSP.
 * 6) Here, you are given the change to customise the OS design or go with one of the suggested templates. No matter which option you choose, you can change it later. For now, we'll select the Enterprise Device>Handheld option. [[File:Platformbuildercustomisation.png]]
 * 7) You can now complete the wizard. Select the option to build the release config at the last wizard screen. If you have not done that, then go to Build>Advanced Build Commands>Sysgen.


 * 1) Open Visual Studio, and select the option to import a vmc file. Locate the vmc default file (typically located at   if you've used the default options). After importing, make sure that the network settings are set correctly, this is needed.
 * 2) Start the virtual machine, which will soon start giving   messages. [[File:Windowsce7initialisation.png]]


 * 1) Go to Target>Attach Device. Platform Builder should soon recognise the VM and start uploading to it. [[File:Platformbuilderdownload.png]]
 * 2) You should now see CE7 on Virtual PC 2007. [[File:IE7onCE7.png]]