Update to Avalonia 0.9.10 and changed to more agressive Ilc settings

This commit is contained in:
Todor Totev 2020-05-12 11:22:33 +03:00
parent 6a2851bfae
commit a4e6e5477a

View File

@ -3,21 +3,19 @@
<!-- if you want to check exceptions, change this to "Exe" and start your app from the console --> <!-- if you want to check exceptions, change this to "Exe" and start your app from the console -->
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<!-- This is a hack. Avalonia 0.9.9 depends on a version of System.Reactive prior 4.4.1, which contains a critical fix for building with CoreRT -->
<!--<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>-->
<Platforms>AnyCPU;x64</Platforms> <Platforms>AnyCPU;x64</Platforms>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<!-- these can help when debugging weird exceptions especially when reflection is involved. See https://github.com/dotnet/corert/blob/master/Documentation/using-corert/optimizing-corert.md --> <!-- these can help when debugging weird exceptions especially when reflection is involved. See https://github.com/dotnet/corert/blob/master/Documentation/using-corert/optimizing-corert.md -->
<RootAllApplicationAssemblies>false</RootAllApplicationAssemblies> <RootAllApplicationAssemblies>false</RootAllApplicationAssemblies>
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata> <IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
<IlcGenerateStackTraceData>true</IlcGenerateStackTraceData> <IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
<IlcDisableUnhandledExceptionExperience>false</IlcDisableUnhandledExceptionExperience> <IlcDisableUnhandledExceptionExperience>true</IlcDisableUnhandledExceptionExperience>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition="$(RuntimeIdentifier.StartsWith('win'))"> <ItemGroup Condition="$(RuntimeIdentifier.StartsWith('win'))">
<!-- Instruct CoreRT to use this native dependency, required to build Avalonia. This library comes from the Windows SDK. --> <!-- Instruct CoreRT to use this native dependency, required to build Avalonia. This library comes from the Windows SDK. -->
<NativeLibrary Include="WindowsApp.lib" /> <NativeLibrary Include="WindowsApp.lib" />
</ItemGroup> </ItemGroup>
@ -34,15 +32,15 @@
<EmbeddedResource Include="windows.png" /> <EmbeddedResource Include="windows.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Avalonia" Version="0.9.9" /> <PackageReference Include="Avalonia" Version="0.9.10" />
<PackageReference Include="Avalonia.Desktop" Version="0.9.9" /> <PackageReference Include="Avalonia.Desktop" Version="0.9.10" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.9" /> <PackageReference Include="Avalonia.ReactiveUI" Version="0.9.10" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-*" /> <PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-*" />
<!-- This is a hack. Avalonia 0.9.7 depends on a version of System.Reactive prior 4.4.1, which contains a critical fix for building with CoreRT --> <!-- This is a hack. Avalonia 0.9.10 depends on a version of System.Reactive prior 4.4.1, which contains a critical fix for building with CoreRT -->
<PackageReference Include="System.Reactive" Version="4.4.1" /> <PackageReference Include="System.Reactive" Version="4.4.1" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<!-- Avalonis relies heavily on reflection. Describe types needed here. --> <!-- Avalonia relies heavily on reflection. Describe types reflected upon here. -->
<RdXmlFile Include="rd.xml" /> <RdXmlFile Include="rd.xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>