Friday, August 08, 2008

Notes: Sharing code between compact & full framework

Why?
- shared code means less code - save time, money & effort
- Use PC tools against your code to improve device development

Don't share the UI.

Some device code can run on the desktop - not the other way round

Detect if running on device via:
System.Environment.OSVersion.Platform

If Pinvoking, DLLs will be different across platforms.

Use conditional compilation to create multiple outputs from one project.

0 comments:

Post a Comment

I get a lot of comment spam :( - moderation may take a while.