Skip to content

Commit 32536e4

Browse files
authored
Remove internal archives (#49879)
* Remove internal archives
1 parent acfe811 commit 32536e4

File tree

4 files changed

+15
-32
lines changed

4 files changed

+15
-32
lines changed

Directory.Build.props

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,6 @@
151151
<TargetingPackName>Microsoft.AspNetCore.App.Ref</TargetingPackName>
152152
<RuntimeInstallerBaseName>aspnetcore-runtime</RuntimeInstallerBaseName>
153153
<TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName>
154-
155-
<!--
156-
Archives and installers using this prefix are intended for internal use only.
157-
For example, this .zip is used to handoff bits to partner teams who then incorporate our shared frameworks
158-
into their own installers.
159-
-->
160-
<InternalInstallerBaseName>$(RuntimeInstallerBaseName)-internal</InternalInstallerBaseName>
161154
</PropertyGroup>
162155

163156
<!-- Compilation options which apply to all languages. Language-specific options should be set in eng/targets/$(lang).Common.props -->

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
175175
<RuntimeListFileName>RuntimeList.xml</RuntimeListFileName>
176176
<RuntimeListOutputPath>$(BaseIntermediateOutputPath)$(RuntimeListFileName)</RuntimeListOutputPath>
177177

178-
<InternalArchiveOutputFileName>$(InternalInstallerBaseName)-$(PackageVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</InternalArchiveOutputFileName>
179-
<InternalArchiveOutputPath>$(InstallersOutputPath)$(InternalArchiveOutputFileName)</InternalArchiveOutputPath>
180178
<RedistArchiveOutputFileName>$(RuntimeInstallerBaseName)-$(PackageVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</RedistArchiveOutputFileName>
181179
<RedistArchiveOutputPath>$(InstallersOutputPath)$(RedistArchiveOutputFileName)</RedistArchiveOutputPath>
182180
<CompositeArchiveOutputFileName>$(RuntimeInstallerBaseName)-composite-$(PackageVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</CompositeArchiveOutputFileName>
@@ -207,7 +205,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
207205
_BatchCopyToSharedFrameworkLayout;
208206
_BatchCopyToRedistLayout;
209207
_BatchCopyToCompositeLayout;
210-
_CreateInternalSharedFxArchive;
211208
_CreateRedistSharedFxArchive;
212209
_CreateRedistCompositeArchive;
213210
</CoreBuildDependsOn>
@@ -709,21 +706,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
709706
<Message Importance="High" Text="$(MSbuildProjectFile) -> $(LocalInstallationOutputPath)" />
710707
</Target>
711708

712-
<Target Name="_CreateInternalSharedFxArchive"
713-
Inputs="@(SharedFxContent)"
714-
Outputs="$(InternalArchiveOutputPath)">
715-
<ZipDirectory
716-
SourceDirectory="$(SharedFrameworkLayoutRoot)"
717-
DestinationFile="$(InternalArchiveOutputPath)"
718-
Overwrite="true"
719-
Condition="'$(ArchiveExtension)' == '.zip'" />
720-
<Exec
721-
Command="tar -czf $(InternalArchiveOutputPath) ."
722-
WorkingDirectory="$(SharedFrameworkLayoutRoot)"
723-
Condition="'$(ArchiveExtension)' == '.tar.gz'" />
724-
<Message Importance="High" Text="$(MSbuildProjectFile) -> $(InternalArchiveOutputPath)" />
725-
</Target>
726-
727709
<Target Name="_CreateRedistCompositeArchive"
728710
Condition="'$(TargetOsName)' == 'linux' or '$(TargetOsName)' == 'linux-musl'"
729711
Inputs="$(CompositeTargetDir)"

src/Installers/Windows/SharedFramework/SharedFramework.wixproj

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<HarvestDirectorySuppressSpecificWarnings>5150;5151</HarvestDirectorySuppressSpecificWarnings>
1616
<HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
1717
<HarvestSource>$(IntermediateOutputPath)fx\</HarvestSource>
18+
<ExtractPath>$(IntermediateOutputPath)fxExtractPath\</ExtractPath>
1819
<IsShipping>true</IsShipping>
1920
<DefineConstants>$(DefineConstants);ProductNameFolder=$(ProductNameFolder)</DefineConstants>
2021
<DefineConstants>$(DefineConstants);ProductNameShort=$(ProductNameShort)</DefineConstants>
@@ -65,17 +66,24 @@
6566
<SharedFrameworkArm64HarvestRootPath Condition="'$(SharedFrameworkArm64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkArm64HarvestRootPath>
6667
<SharedFrameworkX64HarvestRootPath Condition="'$(SharedFrameworkX64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkX64HarvestRootPath>
6768
<SharedFrameworkX86HarvestRootPath Condition="'$(SharedFrameworkX86HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkX86HarvestRootPath>
68-
<IntermediateArm64SharedFxZip>$(SharedFrameworkArm64HarvestRootPath)aspnetcore-runtime-internal-$(PackageVersion)-win-arm64.zip</IntermediateArm64SharedFxZip>
69-
<IntermediateX64SharedFxZip>$(SharedFrameworkX64HarvestRootPath)aspnetcore-runtime-internal-$(PackageVersion)-win-x64.zip</IntermediateX64SharedFxZip>
70-
<IntermediateX86SharedFxZip>$(SharedFrameworkX86HarvestRootPath)aspnetcore-runtime-internal-$(PackageVersion)-win-x86.zip</IntermediateX86SharedFxZip>
69+
<IntermediateArm64SharedFxZip>$(SharedFrameworkArm64HarvestRootPath)aspnetcore-runtime-$(PackageVersion)-win-arm64.zip</IntermediateArm64SharedFxZip>
70+
<IntermediateX64SharedFxZip>$(SharedFrameworkX64HarvestRootPath)aspnetcore-runtime-$(PackageVersion)-win-x64.zip</IntermediateX64SharedFxZip>
71+
<IntermediateX86SharedFxZip>$(SharedFrameworkX86HarvestRootPath)aspnetcore-runtime-$(PackageVersion)-win-x86.zip</IntermediateX86SharedFxZip>
7172
</PropertyGroup>
7273

7374
<Unzip Condition="'$(Platform)' == 'arm64'"
74-
SourceFiles="$(IntermediateArm64SharedFxZip)" DestinationFolder="$(HarvestSource)" />
75+
SourceFiles="$(IntermediateArm64SharedFxZip)" DestinationFolder="$(ExtractPath)" />
7576
<Unzip Condition="'$(Platform)' == 'x64'"
76-
SourceFiles="$(IntermediateX64SharedFxZip)" DestinationFolder="$(HarvestSource)" />
77+
SourceFiles="$(IntermediateX64SharedFxZip)" DestinationFolder="$(ExtractPath)" />
7778
<Unzip Condition="'$(Platform)' == 'x86'"
78-
SourceFiles="$(IntermediateX86SharedFxZip)" DestinationFolder="$(HarvestSource)" />
79+
SourceFiles="$(IntermediateX86SharedFxZip)" DestinationFolder="$(ExtractPath)" />
80+
81+
<!-- The runtime zips also contain the core runtime shared framework, which we don't want when harvesting.
82+
Copy just the aspnetcore shared Fx to the harvest location -->
83+
<ItemGroup>
84+
<SharedFxFilesToHarvest Include="$(ExtractPath)\shared\Microsoft.AspNetCore.App\**\*" />
85+
</ItemGroup>
86+
<Copy SourceFiles="@(SharedFxFilesToHarvest)" DestinationFolder="$(HarvestSource)\shared\Microsoft.AspNetCore.App\%(RecursiveDir)" />
7987
</Target>
8088

8189
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />

src/Installers/Windows/SharedFrameworkLib/SharedFrameworkLib.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
3939

4040
<PropertyGroup>
41-
<PackageFileName>$(InternalInstallerBaseName)-$(PackageVersion)-win-$(Platform)$(TargetExt)</PackageFileName>
41+
<PackageFileName>$(RuntimeInstallerBaseName)-internal-$(PackageVersion)-win-$(Platform)$(TargetExt)</PackageFileName>
4242
</PropertyGroup>
4343

4444
<!-- Overwrite the wix package drop creation target to create a lit

0 commit comments

Comments
 (0)