如果NETFX_CORE是Windows 8,什么是为Windows Phone 8?NETFX_CORE、Windows、Phone

由网友(promise(承诺))分享简介:据我所知使用NETFX_CORE指令,像这样的:I understand using the NETFX_CORE directive, like this:#if NETFX_CORE // Windows 8#else // Windows Phone 8#endif更多信息:的http://msdn.mi...

据我所知使用NETFX_CORE指令,像这样的:

I understand using the NETFX_CORE directive, like this:

#if NETFX_CORE 
    // Windows 8
#else 
    // Windows Phone 8
#endif

更多信息:的http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714084(v=vs.105).aspx

但有一个特定的指令到Windows Phone 8?

But is there a directive specific to Windows Phone 8?

推荐答案

是的,Windows Phone的指令是:

Yes, the Windows Phone directive is:

#if WINDOWS_PHONE

这是记载这里,但我很惊讶,它没有提到here.我还测试了这款在一些code,和它的作品。

This is documented here, but I'm surprised that it isn't mentioned here. I also tested this in some code, and it works.

阅读全文

相关推荐

最新文章