Update to ILCompiler 7.0.0-*
Official support added to MacOS x64
This commit is contained in:
parent
aaeb541cd6
commit
225a954bb3
@ -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
7
test.command
Executable 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
|
Loading…
x
Reference in New Issue
Block a user