I have read Conditional Compilation symbol for .Net Core Class Library but this is about a different problem.
How can I, in Asp.Net core set a compiler symbol for the Debug configuration and a different one for the Release configuration?
The Configuration/Platform selection row is greyed out:
Selecting a different solution configuration in the VS toolbar doesn't make a difference either.