Browse Source
Merge pull request #7558 from hez2010/aot
Add NativeAOT build for ControlCatalog
pull/7604/head
Max Katz
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
21 additions and
0 deletions
-
samples/ControlCatalog.NetCore/ControlCatalog.NetCore.csproj
-
samples/ControlCatalog.NetCore/rd.xml
|
|
|
@ -6,6 +6,12 @@ |
|
|
|
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(RunAotCompilation)' == 'true'"> |
|
|
|
<IlcTrimMetadata>true</IlcTrimMetadata> |
|
|
|
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json</RestoreAdditionalProjectSources> |
|
|
|
<NativeAotCompilerVersion>7.0.0-*</NativeAotCompilerVersion> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<ProjectReference Include="..\..\src\Avalonia.Headless.Vnc\Avalonia.Headless.Vnc.csproj" /> |
|
|
|
<ProjectReference Include="..\..\src\Avalonia.Dialogs\Avalonia.Dialogs.csproj" /> |
|
|
|
@ -15,6 +21,14 @@ |
|
|
|
<PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2020091801" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup Condition="'$(RunAotCompilation)' == 'true'"> |
|
|
|
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" /> |
|
|
|
<!-- Cross-compilation for Windows x64-arm64 and Linux x64-arm64 --> |
|
|
|
<PackageReference Condition="'$(RuntimeIdentifier)'=='win-arm64'" Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" /> |
|
|
|
<PackageReference Condition="'$(RuntimeIdentifier)'=='linux-arm64'" Include="runtime.linux-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" /> |
|
|
|
<RdXmlFile Include="rd.xml" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<PropertyGroup> |
|
|
|
<!-- For Microsoft.CodeAnalysis --> |
|
|
|
<SatelliteResourceLanguages>en</SatelliteResourceLanguages> |
|
|
|
|
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
<Directives> |
|
|
|
<Application> |
|
|
|
<Assembly Name="ControlCatalog" Dynamic="Required All"></Assembly> |
|
|
|
<Assembly Name="Avalonia.Themes.Default" Dynamic="Required All"></Assembly> |
|
|
|
<Assembly Name="Avalonia.Themes.Fluent" Dynamic="Required All"></Assembly> |
|
|
|
</Application> |
|
|
|
</Directives> |