Skip to content

Commit bbc874d

Browse files
committed
Applied best known ILT0005 workarounds
1 parent 66ab9fa commit bbc874d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ProjectHeads/Head.Uwp.props

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,22 @@
2121
</PropertyGroup>
2222

2323
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
24-
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
24+
<!-- Don't overwrite if already defined. Needed for disabling .NET Native in test projects. -->
25+
<UseDotNetNativeToolchain Condition="'$(UseDotNetNativeToolchain)' == ''">true</UseDotNetNativeToolchain>
26+
27+
<!--
28+
Workarounds for ILT0005: Out of memory.
29+
-->
30+
<IlcParameters>/ExtraNutcArguments:"/d2threads1"</IlcParameters>
31+
<SingleThreadNUTC>true</SingleThreadNUTC>
32+
<Use64BitCompiler>true</Use64BitCompiler>
33+
<OutOfProcPDB>true</OutOfProcPDB>
2534
</PropertyGroup>
2635

2736
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
2837
<DebugSymbols>true</DebugSymbols>
2938
<OutputPath>bin\x86\Debug\</OutputPath>
30-
<DefineConstants>$(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
39+
<DefineConstants>$(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
3140
<DebugType>full</DebugType>
3241
<PlatformTarget>x86</PlatformTarget>
3342
<UseVSHostingProcess>false</UseVSHostingProcess>

ProjectHeads/Tests.Head.Uwp.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!-- Workaround as discussed https://github.com/unoplatform/uno/discussions/5007 for https://developercommunity.visualstudio.com/t/HasSharedItems-is-explicitly-set-to-em/10016046 -->
66
<PropertyGroup>
77
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata>
8+
<UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
89
</PropertyGroup>
910

1011
<ItemGroup>

0 commit comments

Comments
 (0)