Просмотр исходного кода

Add DEBUG constant for both Debug and Debug-COM25

Allows for only requiring #if DEBUG if debug code can apply to both.
habeebweeb 1 год назад
Родитель
Сommit
cd58e52db1
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Directory.Build.props

+ 2 - 1
Directory.Build.props

@@ -10,6 +10,7 @@
   </PropertyGroup>
 
   <PropertyGroup Condition=" $(Configuration.StartsWith('Debug')) ">
+    <DefineConstants>DEBUG</DefineConstants> 
     <DebugSymbols>true</DebugSymbols>
     <Optimize>false</Optimize>
   </PropertyGroup>
@@ -20,7 +21,7 @@
   </PropertyGroup>
 
   <PropertyGroup Condition=" $(Configuration.EndsWith('COM25')) ">
-    <DefineConstants>COM25</DefineConstants>
+    <DefineConstants>$(DefineConstants);COM25</DefineConstants>
   </PropertyGroup>
 
   <ItemGroup>