Detect platform compact framework vs Windows XP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an assembly that is shared by a .NET Smart Device application and a
regular .NET Windows Forms application.

How do I detect which framework the code is running on at runtime? Tthe
code needs to take a different path if running on compact framework as some
things like Thread.Join are missing.
 
Thanks. That should do it!

Also, I said it's a shared assembly - but really it's just shared source
code becuase it's rebuit for each platform.
 
In which case you might as well make the decision of which code path to
follow at compile time (not at runtime). So see my other blog entry (linked
from the one I sent already).

Cheers
Daniel
 
Back
Top