|
15 | 15 | <HarvestDirectorySuppressSpecificWarnings>5150;5151</HarvestDirectorySuppressSpecificWarnings>
|
16 | 16 | <HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
|
17 | 17 | <HarvestSource>$(IntermediateOutputPath)fx\</HarvestSource>
|
| 18 | + <ExtractPath>$(IntermediateOutputPath)fxExtractPath\</ExtractPath> |
18 | 19 | <IsShipping>true</IsShipping>
|
19 | 20 | <DefineConstants>$(DefineConstants);ProductNameFolder=$(ProductNameFolder)</DefineConstants>
|
20 | 21 | <DefineConstants>$(DefineConstants);ProductNameShort=$(ProductNameShort)</DefineConstants>
|
|
65 | 66 | <SharedFrameworkArm64HarvestRootPath Condition="'$(SharedFrameworkArm64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkArm64HarvestRootPath>
|
66 | 67 | <SharedFrameworkX64HarvestRootPath Condition="'$(SharedFrameworkX64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkX64HarvestRootPath>
|
67 | 68 | <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> |
71 | 72 | </PropertyGroup>
|
72 | 73 |
|
73 | 74 | <Unzip Condition="'$(Platform)' == 'arm64'"
|
74 |
| - SourceFiles="$(IntermediateArm64SharedFxZip)" DestinationFolder="$(HarvestSource)" /> |
| 75 | + SourceFiles="$(IntermediateArm64SharedFxZip)" DestinationFolder="$(ExtractPath)" /> |
75 | 76 | <Unzip Condition="'$(Platform)' == 'x64'"
|
76 |
| - SourceFiles="$(IntermediateX64SharedFxZip)" DestinationFolder="$(HarvestSource)" /> |
| 77 | + SourceFiles="$(IntermediateX64SharedFxZip)" DestinationFolder="$(ExtractPath)" /> |
77 | 78 | <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)" /> |
79 | 87 | </Target>
|
80 | 88 |
|
81 | 89 | <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
|
|
0 commit comments