Preprocessor directives in Razor

I am writing my first Razor page today, and can’t figure out how to enter

#if debug
...
#else
...
#endif

How can I do that in Razor?

10 Answers
10

Leave a Comment