55 lines
2.5 KiB
XML
55 lines
2.5 KiB
XML
<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>
|
|
<TargetFramework>net5.0</TargetFramework>
|
|
<Platforms>AnyCPU;x64</Platforms>
|
|
</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 -->
|
|
<RootAllApplicationAssemblies>false</RootAllApplicationAssemblies>
|
|
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
|
|
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
|
|
<IlcDisableUnhandledExceptionExperience>true</IlcDisableUnhandledExceptionExperience>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition="$(RuntimeIdentifier.StartsWith('win'))">
|
|
<!-- Instruct CoreRT to use this native dependency, required to build Avalonia. This library comes from the Windows SDK. -->
|
|
<NativeLibrary Include="WindowsApp.lib" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="**\*.xaml.cs">
|
|
<DependentUpon>%(Filename)</DependentUpon>
|
|
</Compile>
|
|
<AvaloniaResource Include="**\*.xaml">
|
|
<SubType>Designer</SubType>
|
|
</AvaloniaResource>
|
|
<AvaloniaResource Include="app.ico" />
|
|
<EmbeddedResource Include="linux.png" />
|
|
<EmbeddedResource Include="macos.png" />
|
|
<EmbeddedResource Include="windows.png" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia" Version="0.9.10" />
|
|
<PackageReference Include="Avalonia.Desktop" Version="0.9.10" />
|
|
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.10" />
|
|
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-*" />
|
|
<!-- 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" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<!-- Avalonia relies heavily on reflection. Describe types reflected upon here. -->
|
|
<RdXmlFile Include="rd.xml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Update="avalonia.png" CopyToPublishDirectory="PreserveNewest">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="dotnet.png" CopyToPublishDirectory="PreserveNewest">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
</Project>
|