Skip to content

Commit f5ca2c4

Browse files
authored
Merge pull request #50 from CommunityToolkit/fix/ilt0005
Mitigations for ILT0005
2 parents 5952d76 + 2f6e7d3 commit f5ca2c4

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ jobs:
9595
PROJECT_DIRECTORY: tooling/ProjectTemplate
9696

9797
steps:
98+
- name: Configure Pagefile
99+
uses: al-cheb/[email protected]
100+
with:
101+
minimum-size: 32GB
102+
maximum-size: 32GB
103+
disk-root: "C:"
104+
98105
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
99106
uses: actions/setup-dotnet@v3
100107
with:

GenerateAllSolution.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if ($IncludeHeads -ne 'uwp')
7070
if ($UseDiagnostics.IsPresent)
7171
{
7272
$sdkoptions = " -d"
73-
$diagnostics = '-bl:slngen.binlog --consolelogger:"ShowEventId;Summary;Verbosity=Detailed" --filelogger:"LogFile=slngen.log;Append;Verbosity=Diagnostic;Encoding=UTF-8" '
73+
$diagnostics = '-bl:slngen.binlog --consolelogger:"ShowEventId;Summary;Verbosity=Detailed" '
7474
}
7575
else
7676
{

ProjectHeads/Head.Uwp.props

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@
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'">

ProjectHeads/Tests.Head.Uwp.props

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

1314
<ItemGroup>

0 commit comments

Comments
 (0)