Remove more duplicate assets from NativeAOT runtime pack build (#89239)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 20 Jul 2023 15:08:12 +0000 (17:08 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Jul 2023 15:08:12 +0000 (10:08 -0500)
src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Ref.sfxproj
src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj

index e859a74..15e1603 100644 (file)
     <PackageDescription>A set of .NET APIs that are included in the default .NET application model. Contains reference assemblies, documentation, and other design-time assets.</PackageDescription>
   </PropertyGroup>
 
+  <PropertyGroup Condition="'$(BuildNativeAOTRuntimePack)' == 'true'">
+    <SkipInstallerBuild>true</SkipInstallerBuild>
+    <SkipArchivesBuild>true</SkipArchivesBuild>
+  </PropertyGroup>
+
   <Target Name="AddFrameworkFilesToPackage" DependsOnTargets="ResolveLibrariesFromLocalBuild" BeforeTargets="GetFilesToPackage">
     <ItemGroup>
       <ReferencePath Include="@(LibrariesRefAssemblies)" />
index 77b16b1..5de1fbb 100644 (file)
     <UseTemplatedPlatformManifest>true</UseTemplatedPlatformManifest>
   </PropertyGroup>
 
+  <PropertyGroup Condition="'$(BuildNativeAOTRuntimePack)' == 'true'">
+    <SkipInstallerBuild>true</SkipInstallerBuild>
+    <SkipArchivesBuild>true</SkipArchivesBuild>
+  </PropertyGroup>
+
   <Import Project="Microsoft.NETCore.App.Runtime.props" />
   <Import Project="ReadyToRun.targets" />
 </Project>