ControlCatalog.NetCore.csproj 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.8</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. <!-- For native controls test -->
  30. <PackageReference Include="MonoMac.NetStandard" Version="0.0.4" />
  31. </ItemGroup>
  32. <ItemGroup Condition="'$(RunNativeAotCompilation)' == 'true'">
  33. <PackageReference Include="Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
  34. <!-- Cross-compilation for Windows x64-arm64 and Linux x64-arm64 -->
  35. <PackageReference Condition="'$(RuntimeIdentifier)'=='win-arm64'" Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
  36. <PackageReference Condition="'$(RuntimeIdentifier)'=='linux-arm64'" Include="runtime.linux-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
  37. </ItemGroup>
  38. <PropertyGroup>
  39. <!-- For Microsoft.CodeAnalysis -->
  40. <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
  41. <ApplicationManifest>app.manifest</ApplicationManifest>
  42. </PropertyGroup>
  43. <Import Project="..\..\build\SampleApp.props" />
  44. <Import Project="..\..\build\ReferenceCoreLibraries.props" />
  45. </Project>