Avalonia.UI.csproj 1.8 KB

1234567891011121314151617181920212223242526272829303132
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>WinExe</OutputType>
  4. <TargetFramework>net6.0</TargetFramework>
  5. <Nullable>enable</Nullable>
  6. <!--Avalonia doesen't support TrimMode=link currently,but we are working on that https://github.com/AvaloniaUI/Avalonia/issues/6892 -->
  7. <TrimMode>copyused</TrimMode>
  8. <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
  9. </PropertyGroup>
  10. <ItemGroup>
  11. <Folder Include="Models\" />
  12. <AvaloniaResource Include="Assets\**" />
  13. <None Remove=".gitignore" />
  14. </ItemGroup>
  15. <ItemGroup>
  16. <!--This helps with theme dll-s trimming.
  17. If you will publish your application in self-contained mode with p:PublishTrimmed=true and it will use Fluent theme Default theme will be trimmed from the output and vice versa.
  18. https://github.com/AvaloniaUI/Avalonia/issues/5593 -->
  19. <TrimmableAssembly Include="Avalonia.Themes.Fluent" />
  20. <TrimmableAssembly Include="Avalonia.Themes.Default" />
  21. </ItemGroup>
  22. <ItemGroup>
  23. <PackageReference Include="Avalonia" Version="0.10.18" />
  24. <PackageReference Include="Avalonia.Desktop" Version="0.10.18" />
  25. <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
  26. <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.18" />
  27. <PackageReference Include="Avalonia.ReactiveUI" Version="0.10.18" />
  28. <PackageReference Include="ReactiveUI" Version="13.2.10" />
  29. <PackageReference Include="System.Reactive" Version="5.0.0" />
  30. <PackageReference Include="XamlNameReferenceGenerator" Version="1.3.4" />
  31. </ItemGroup>
  32. </Project>