From VSFeedback | 484140
Create either a Netstandard or Net Core project and put this code in the class:
#if DEBUG
public static int I = 5;
#else
public static int I = 6;
#endif
Second statement (#else) will be correctly grayed out.
Change configuration to Release.
Expected: first statement is grayed out.
Actual: second is still grayed out.
Note: Sometimes it picks the change but then gets stuck again to that. Compiler works properly.
In general these changes are not reflected in the editor until you reload the project.
From VSFeedback | 484140
In general these changes are not reflected in the editor until you reload the project.