Compact Framework Development

apienk01 edited this page Oct 20, 2010 · 6 revisions

The quick answer is "YES, you can develop Pocket PC applications with SharpDevelop" but only with version 3.xx. In version 4 the Compact Framework support was removed due to the decision to implement WPF (Windows Presentation Foundation) user interface instead of Windows Forms.

Here is a list of things you will need:

SharpDevelop 3.2

.NET Framework 2.0 Software Development Kit (SDK)


.NET Framework 3.5 Software Development Kit (SDK)

.Net CF 3.5 Power Toys

4/2/09 - OpenNETCF Smart Device Framework (SDF) (Community Version) works in version This is a great tool for all Windows Mobile developers. Everything they have implemented is available via winCE CoreDLL.DLL, but the SDF makes it a lot eaiser and its free.

4/2/09 - .Net CF 3.5 Class Library DLL successfully created and tested (version Create a new VBNet Class Library (for Windows, not under Compact Framework), and change the Target Framework to Compact Framework 3.5 (click Project->Project Options->Compiling Tab, about half way down is a drop down box for Target Framework).

10/20/10 - Successfully compiled and tested several VB.NET CF v3.5 applications on SharpDevelop 3.2 after manual edits to the code generated by the form designer. IntelliSense auto-completion works fine for Compact Framework.

Known errors :{BR}

  • Windows Mobile Form Designer In version 3.2 the Form Designer still generates .NET code containing some properties not supported by the Compact Framework. After every edit in the designer some auto-generated lines or keywords have to be deleted manually eg. PerformLayout(). Accordingly, many controls available in the left panel are in fact not available, they get added but then compiler throws errors. Also, SharpDevelop 3.2 form designer has no support for MainMenu class (superseded in the regular .NET Framework by MenuStrip). This means menu code has to be written manually.

  • If you get an error such as: The "AddHighDPIResource" task failed unexpectedly. You miss a key in the registry: (add this and you'll manage to compile) {BR} [HKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CVisualStudio%5C9.0%5CSetup%5CVS|HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Setup\VS]{BR} "ProductDir"="c:\Program Files\Microsoft Visual Studio 9.0\"{BR}

    See also:{BR}

Support from the Forum:{BR}

Use the Device Emulator!{BR}

  • You can download the emulator for free Microsoft Device Emulator 3.0
  • You also will have to download some Windows Mobile operating system images:

Windows Mobile 6.5 Developer Toolkit or Windows Mobile 6 Professional and Standard Software Development Kits Refresh.