What's the best way to get the CF 2.0 runtime onto the remote device if the CF 1.0 runtime is already installed?


There are two ways to get NETCF on CE 5.0:

*CAB installation, NETCF in RAM
*Platform Builder QFE, NETCF in ROM.

CF 1.0 and CF 2.0 can run side by side. That means CF 1.0 removal is not required. In that case 1.0 applications would run against CF 1.0 and 2.0 applications against CF 2.0.

Configuration file can be used to force 1.0 apps to run using 2.0 runtime. To do this do the following
*Create a configuration file using the same naming convention as the full .NET Framework (Myapp.exe.config)
*Add the following to the config file
		 <configuration> 
		  <startup> 
		    <supportedRuntime version="v2.0.5238"/> 
		  </startup> 
		 </configuration> 
	
*Copy the file to the device in the same folder as the application (\Program Files\Myapp)
_For more information on controlling the exact version of the runtime a program runs against, checkout Is your application running on version 2 of the .NET Compact Framework? _

If CF 1.0 is removed, 1.0 applications will automatically run against CF 2.0 providing significant performance benefits.

.NET Compact Framework version 2 compatability issues with .NET Compact Framework version 1

*See Known V1/V2 Compatability Issues

Adapting legacy apps to version 2 of the Compact Frameworks...


*How do I force my NetCF v1 application to run against NetCF v2?
*Running NetCF v1 Applications on v2 - Part II
Microsoft Communities