ControlCatalog.NetCore.csproj 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>WinExe</OutputType>
  4. <TargetFramework>net6.0</TargetFramework>
  5. <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
  6. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  7. <RuntimeFrameworkVersion>6.0.9</RuntimeFrameworkVersion>
  8. </PropertyGroup>
  9. <PropertyGroup Condition="'$(RunNativeAotCompilation)' == 'true'">
  10. <IlcTrimMetadata>true</IlcTrimMetadata>
  11. <RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json</RestoreAdditionalProjectSources>
  12. <NativeAotCompilerVersion>7.0.0-*</NativeAotCompilerVersion>
  13. </PropertyGroup>
  14. <ItemGroup>
  15. <Compile Include="..\..\src\Avalonia.X11\NativeDialogs\Gtk.cs" Link="NativeControls\Gtk\Gtk.cs" />
  16. </ItemGroup>
  17. <ItemGroup>
  18. <Content Include="NativeControls\Gtk\nodes.mp4">
  19. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  20. </Content>
  21. </ItemGroup>
  22. <ItemGroup>
  23. <ProjectReference Include="..\..\src\Avalonia.Diagnostics\Avalonia.Diagnostics.csproj" />
  24. <ProjectReference Include="..\..\src\Avalonia.Headless.Vnc\Avalonia.Headless.Vnc.csproj" />
  25. <ProjectReference Include="..\..\src\Avalonia.Dialogs\Avalonia.Dialogs.csproj" />
  26. <ProjectReference Include="..\..\src\Linux\Avalonia.LinuxFramebuffer\Avalonia.LinuxFramebuffer.csproj" />
  27. <ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj" />
  28. <ProjectReference Include="..\..\src\Avalonia.X11\Avalonia.X11.csproj" />
  29. <PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2020091801" />
  30. <!-- For native controls test -->
  31. <PackageReference Include="MonoMac.NetStandard" Version="0.0.4" />
  32. </ItemGroup>
  33. <ItemGroup Condition="'$(RunNativeAotCompilation)' == 'true'">
  34. <PackageReference Include="Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
  35. <!-- Cross-compilation for Windows x64-arm64 and Linux x64-arm64 -->
  36. <PackageReference Condition="'$(RuntimeIdentifier)'=='win-arm64'" Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
  37. <PackageReference Condition="'$(RuntimeIdentifier)'=='linux-arm64'" Include="runtime.linux-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
  38. </ItemGroup>
  39. <PropertyGroup>
  40. <!-- For Microsoft.CodeAnalysis -->
  41. <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
  42. <ApplicationManifest>app.manifest</ApplicationManifest>
  43. </PropertyGroup>
  44. <Import Project="..\..\build\SampleApp.props" />
  45. <Import Project="..\..\build\ReferenceCoreLibraries.props" />
  46. </Project>