[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:
Родитель
0aa7d32d79
Коммит
41c56269f6
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче