kmalmur
kmalmur

Reputation: 2839

.NET compact framework backward compatibility 3.5 and 2.0

Do I need to install .NET 2.0 on the device, where .NET 3.5 is installed?

So far my application works on .NET 2.0 (which potentially should be faster) but the long term plan is to port it to .NET 3.5. I need to order devices and the OEM needs to know which version of .NET should be added to the Windows CE image (version 5.0). Shall I ask him to add both .NET 2.0 and .NET 3.5?

Upvotes: 6

Views: 2552

Answers (3)

ctacke
ctacke

Reputation: 67168

Using either an app.config or a device.config file you can promote your application and tell the .NET Compact Framework which runtimes it can use via either the supportedRuntime or compatibility version (some of these are for .NET 1.0 to .NET 2.0, but the mechanism remains the same for .NET 3.5).

Microsoft even has a tool to aid in generating the proper files.

Upvotes: 3

Shaihi
Shaihi

Reputation: 3974

As far as I know only one version of the .net cf should be added to the image. Either 3.5 or 2.0 and not both.

As for backward compatibility, I believe Artiom answers that.

Upvotes: 1

Artiom Chilaru
Artiom Chilaru

Reputation: 12191

Actually, .NET 3.5 is just a superset of assemblies on top of the .NET 2 framework (unlike .NET 4 which is completely separate).

So if you install .NET 3.5, it will install and should run .NET 2 apps with no problems, afaik.

Upvotes: 0

Related Questions