Conditional Compilation Symbol on cshtml and aspx

According to msdn, you can define symbols/constants for the c# compiler and use them in your code as compile conditions using the #if directive. Those symbols can be used to specify conditions for compilation. However, CSHTML (MVC Razor), ASPX (WebForms) and other ASP.NET pages do not recognize project level compilation symbols. These directives are compile […]