如果NETFX_CORE是Windows 8,什么是为Windows Phone 8? [英] If NETFX_CORE is for Windows 8, what is for Windows Phone 8?
本文介绍了如果NETFX_CORE是Windows 8,什么是为Windows Phone 8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
据我所知使用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
这是记载这里,但我很惊讶,它没有提到<一个href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714084(v=vs.105).aspx">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.
这篇关于如果NETFX_CORE是Windows 8,什么是为Windows Phone 8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文