Reputation: 5047
I'm doing a library, which I want to detect if it's running in a WP7/WP8 environment. How to do that using .NET?
EDIT:
I forget to mention I want to detect it at runtime.
Upvotes: 0
Views: 314
Reputation: 10906
If you want to differentiate between existing platforms that .NET runs on - take a look at this MSDN page about cross-platform conditional compilation symbols.
The currently defined platforms are Windows, XBox and Windows Phone.
Upvotes: 2
Reputation: 16826
Windows Phone 8 SDK is not yet released, therefore currently there is no way to find that out.
Upvotes: 0