« Matt Hahn Sports Announcer | Main | Teaching source control »

August 23, 2004

cross platform .Net

Jim Wilson gave a nice, short explanation of why you can run a .Net Compact Framework app on the Full Framework but not the other way around.

CF and the full framework do use the same IL. The problem is that the core assemblies on the two platforms have different public key tokens. The full framework knows how to map the CF public key tokens to its own, CF doesn't have the corresponding capability.

The question was originally posed because someone wanted to use the C# Express IDE to create a CF app. Something I already mentioned Microsoft needs to make easier. But with the combination of C# Express IDE and the promised Compact Framework SDK, I think the following scenario would be possible (but not as ideal as a Compact Framework Express product).

Use C# (or VB) Express to create an application, manually limiting yourself to the CF compatible code.

Instead of compiling with Express, compile with the CF SDK.

Copy over to the device (I can't think of a way to get the emulator for cheap/free) and run.

Posted by mikel at August 23, 2004 08:17 PM

Trackback Pings

TrackBack URL for this entry:
http://WWW.mjberger.COM/cgi-bin/mt-tb.cgi/9

Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?