- Home /
Question by
NightElfik · Apr 21, 2021 at 07:58 PM ·
project
All defined constants are missing in Release mode in the project file, how to use release mode?
In the generated Assembly-CSharp-Editor.csproj
file there are many constants defined in the Debug
mode, such as <DefineConstants>DEBUG;TRACE;UNITY_EDITOR;UNITY_POST_PROCESSING_STACK_V2;...</DefineConstants>
etc.
However, in the Release
mode, there are NO defined constants at all. So when I switch to Release mode in Visual Studio, I get bunch of errors due to missing constants such as UNITY_EDITOR
.
I cannot even add them manually because Unity re-generates these files aggressively and there is no way to disable that.
How is Release mode supposed to be used given that all of consents are missing? How can I define the correct constants in the Release
mode?
Comment