Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Compiler Time Symbols

$
0
0

Does anyone know where I can find a list of compiler time symbols that visual studio already uses, such as: DEBUG, NET_4_0, RELEASE....?

I am asking because I run this code and I am looking to expand it.

private static string DotNetVersion()
{
         string value = "Nothing";
#if NET_4_0
         value = "4.0";
#elif NET_4_5
         value = "4.5";
#elif NET_4_5_1
         value = "4.5.1";
#elif NET_4_6
         value = "4.6";
#elif NET_4_6_1
         value = "4.6.1";
#endif
         return value;
}


MSDN jbeen19


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>