On his blog, Andrew Arnott discusses how to avoid depending on the internal details of NetCF (or the desktop .NET Framework).