Detect platform compact framework vs Windows XP

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.
 
G

Guest

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.
 
D

Daniel Moth

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top