[tests] Adjust link all's project file to set properties to their expected values according to the current configuration. (#10468)

Also don't overwrite DefineConstants, just add to it instead.
This commit is contained in:
Rolf Bjarne Kvinge 2021-01-20 07:15:33 +01:00 коммит произвёл GitHub
Родитель 0aa7d32d79
Коммит 41c56269f6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -4,7 +4,7 @@
<TargetFramework>net6.0-ios</TargetFramework>
<RuntimeIdentifier>ios-x64</RuntimeIdentifier>
<OutputType>Exe</OutputType>
<DefineConstants>NET</DefineConstants>
<DefineConstants>NET;$(DefineConstants)</DefineConstants>
<LangVersion>latest</LangVersion>
<RootNamespace>linkall</RootNamespace>
<AssemblyName>link all</AssemblyName>
@ -14,6 +14,15 @@
<MtouchExtraArgs>--optimize=all,-remove-dynamic-registrar,-force-rejected-types-removal</MtouchExtraArgs>
</PropertyGroup>
<!-- We use configurations like Debug64 and Release64, which doesn't work with the default logic we and .NET have -->
<PropertyGroup Condition="$(Configuration.Contains('Debug'))">
<MtouchDebug>true</MtouchDebug>
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('Release'))">
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<Reference Include="support">
<HintPath>../../support.dll</HintPath>