Skip to content

Commit 05488ad

Browse files
committed
Use .NET 7 AOT toolchain
1 parent 3ceb6df commit 05488ad

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

aot-build.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ dotnet($dotnetArgs)
3939
$dotnetArgs = @(
4040
"publish", "src/Game/Game.csproj",
4141
"-r", "$Runtime",
42-
"-c", "Release",
43-
"/p:Native=true"
42+
"-c", "Release"
4443
)
4544
dotnet($dotnetArgs)
4645

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- task: UseDotNet@2
1111
inputs:
1212
packageType: 'sdk'
13-
version: '7.0.100-preview.5.22307.18'
13+
version: '7.0.100-preview.6.22352.1'
1414
includePreviewVersions: true
1515
- task: PowerShell@2
1616
inputs:

src/Game/Game.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
<DebugType>pdbonly</DebugType>
1010
<NoWarn>VSTHRD103;VSTHRD200</NoWarn>
1111
<ApplicationIcon>CoZ.ico</ApplicationIcon>
12-
<PublishTrimmed>true</PublishTrimmed>
13-
<TrimMode>link</TrimMode>
14-
<TrimmerDefaultAction>link</TrimmerDefaultAction>
12+
<PublishAot>true</PublishAot>
1513
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
1614
<IlcTrimMetadata>true</IlcTrimMetadata>
1715
<IlcFoldIdenticalMethodBodies>true</IlcFoldIdenticalMethodBodies>
@@ -38,7 +36,6 @@
3836

3937
<ItemGroup>
4038
<ProjectReference Include="..\NitroSharp\NitroSharp.csproj" />
41-
<PackageReference Condition="'$(Native)' == 'true'" Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-preview.4.22229.4" />
4239
</ItemGroup>
4340

4441
</Project>

0 commit comments

Comments
 (0)