Update to ILCompiler 7.0.0-*

Official support added to MacOS x64
This commit is contained in:
Joseph Moreno 2021-10-09 12:02:31 -05:00
parent aaeb541cd6
commit 225a954bb3
3 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- if you want to check exceptions, change this to "Exe" and start your app from the console -->
<OutputType>WinExe</OutputType>
@ -36,7 +36,7 @@
<PackageReference Include="Avalonia" Version="0.10.7" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.7" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.7" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="6.0.0-*" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
</ItemGroup>
<ItemGroup>
<!-- Avalonia relies heavily on reflection. Describe types reflected upon here. -->
@ -50,4 +50,11 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="ConfigureTrimming" BeforeTargets="PrepareForILLink">
<ItemGroup>
<ManagedAssemblyToLink>
<TrimMode>link</TrimMode>
</ManagedAssemblyToLink>
</ItemGroup>
</Target>
</Project>

7
test.command Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
dir=${0%/*}
if [ -d "$dir" ]; then
cd "$dir"
fi
rm -f src/packages.lock.json
dotnet publish -r osx-x64 -c release /p:RestoreLockedMode=true

3
test.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
rm -f src/packages.lock.json
dotnet publish -r linux-x64 -c release /p:RestoreLockedMode=true