diff options
Diffstat (limited to 'src/Installers/Windows/WindowsInstallers.proj')
-rw-r--r-- | src/Installers/Windows/WindowsInstallers.proj | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/Installers/Windows/WindowsInstallers.proj b/src/Installers/Windows/WindowsInstallers.proj index ed47388b68..e0c1a5068e 100644 --- a/src/Installers/Windows/WindowsInstallers.proj +++ b/src/Installers/Windows/WindowsInstallers.proj @@ -19,7 +19,7 @@ </ItemGroup> - <Target Name="Build"> + <Target Name="Build" DependsOnTargets="UnzipSharedFx"> <MSBuild Projects="@(InstallerProject)" Targets="Build" /> </Target> @@ -32,4 +32,28 @@ <MSBuild Projects="@(InstallerProject)" Targets="Restore" /> </Target> -</Project> + <Target Name="UnzipSharedFx"> + <Message Text="Unzipping x64 SharedFx to $(SharedFrameworkHarvestRootPath)x64" Importance="High" /> + + <ItemGroup> + <x64Archive Include="$(SharedFxDepsRoot)aspnetcore-runtime-internal-*-win-x64.zip" /> + <x86Archive Include="$(SharedFxDepsRoot)aspnetcore-runtime-internal-*-win-x86.zip" /> + </ItemGroup> + + <!-- We don't import version files here, so unzip whatever internal archives are in the .deps folder --> + <Unzip + SourceFiles="@(x64Archive)" + DestinationFolder="$(SharedFrameworkHarvestRootPath)x64" + Condition="!Exists('$(SharedFrameworkHarvestRootPath)x64/shared/')" + /> + + <Message Text="Unzipping x86 SharedFx to $(SharedFrameworkHarvestRootPath)x86" Importance="High" /> + + <Unzip + SourceFiles="@(x86Archive)" + DestinationFolder="$(SharedFrameworkHarvestRootPath)x86" + Condition="!Exists('$(SharedFrameworkHarvestRootPath)x86/shared/')" + /> + </Target> + +</Project>
\ No newline at end of file |