How to add a link with a conditional compilation symbol, as in the code. those. having or not setting, for example, UNITY in the project settings, he answers this post , and is simply done by editing your .csproj file, adding a condition to the link, and calling the DefineConstants.Contains () method :
<Reference Include="yourdll" Condition="$(DefineConstants.Contains('UNITY'))">
source
share