What is the NETFX_CORE conditional compilation symbol for?


  • When creating new WinRT projects, we've noticed that there is a NETFX_CORE conditional compilation symbol defined by default.  What specifically is that used for and will there be any issues if we remove it?

    Thanks in advance.

    actiprosoftware.com - Professional WPF, Silverlight, and WinForms UI controls and components

    Monday, March 12, 2012 1:45 PM


  • NetFxCore refers to set of reference assemblies for Metro applications. NETFX_CORE compilation symbol will most likely affect some generated code or code copied into your project. I guess if you remove it, it will not compile as expected and it may lead to errors at build time or runtime.


    Tuesday, March 13, 2012 5:00 AM