This article is broken down into sections:
New 3.5 Framework features:
- SystemSettings class (Microsoft.WindowsCE.Forms.dll) has a new propery named Platform that gets the operating system of the device. So now it is easier to determine whether you are running on a smartphone or a windows mobile device.
- SoundPlayer class (System.dll) - at last! This class initially introduced to the .NET Framework 2.0 is now available on mobile devices using the framework to play wav files.
- LINQ - language integrated query designed by Anders Hejlsberg - Chief Architect of C#. The namespace has recently changed (I believe in beta1) from System.Query, System.Xml.Query, System.Data.Query to System.Linq respectively. Compact Framework LINQ support is a subset of the desktop framework. Some of the limitations over the desktop version of LINQ are as follows: only standard operators are supported. LINQ to Xml and LINQ to DataSet is supported. LINQ to SQL and LINQ to Entities are *not* supported for memory constraint reasons, ;( See the LINQ Project web site to learn more on LINQ.
- Windows Communication Foundation (WCF). See here for the features of WCF that is supported under the .NET CF 3.5. Some of the limitations are; only HTTP binding support, only XML formating no binary.
- System.IO.Compression (System.dll) - at last!! the DeflateStream and the GZipStream classes are both supported on the .NET CF 3.5. We can now enjoy these compression classes on the mobile device that we have enjoyed since .NET 2.0 on the desktop.
- The Control class now suports the CreateGraphics method which returns the Graphics object so you can draw using GDI on the following controls:
- System.Delegate.CreateDelegate 1 static method is supported.
- SQL Server Compact 3.5. This post talks about some of the new features with SQL Server Compact 3.5. Note this version of SQL Server can be used on the desktop as well as mobile devices.
- Windows Mobile 6 SDK. Although this SDK does ship with Visual Studio .NET 2008 and installs if you choose to install the CF, doing so when you already have WM6 SDK installed will result in it not being shown in VS 2008. See here for a work around.
- .NET CF 3.5 Power Toys. Currently in CTP not RTM. Required for WCF proxy generation. These tools do not come with VS 2008, you have to download them separately. There are some other really great tools that come with this install such as:
- Remote Performance Monitor.
- .NET CF CLR Profiler - very handy tool.
- Application Configuration Tool.
- Remote Logging Configuration Tool.
- .NET CF Network Log Viewer.
Visual Studio .NET 2008 features:
- Unit Testing. At last, built in unit testing which allows you to run tests right on your device or emulator. See this post if you are running into issues getting it to work.
- Improved documentation. You can filter by supported CF members as the CF documentation is not separate from the desktop. Each member os flagged whether it is supported on the CF. See here for more information on identifying supported members.
Types of devices supported by the .NET Compact Framework 3.5:
- Windows Mobile 2003 for Pocket PC.
- Windows Mobile 2003 for Pocket PC SE.
- Windows Mobile 5.0 for Pocket PC.
- Windows Mobile 6.0 for Pocket PC.
- Windows Mobile 5.0 for Smartphone.
- Windows Mobile 6.0 for Smartphone.
- Windows Embedded CE 6.0.
I have used old naming for the above re: WM 6. For new naming see this post.
Compact Framework versions supported by Visual Studio .NET 2008 (multi-targeting):
- .NET Compact Framework 2.0.
- .NET Compact Framework 3.5.
For new C# 3.0 and VB 9.0 language features available in the .NET Compact Framework 3.5 as well of course available in the desktop framewok 3.5 with Visual Studio .NET 2008, see here.