2018-10-29 20:31:03 +00:00
|
|
|
<Project>
|
|
|
|
<Target Name="GenerateArchives"
|
2018-11-08 02:17:30 +00:00
|
|
|
DependsOnTargets="GenerateLayout;GetCurrentRuntimeInformation"
|
2019-02-15 02:21:23 +00:00
|
|
|
BeforeTargets="AfterBuild">
|
2018-10-29 20:31:03 +00:00
|
|
|
|
2018-11-08 16:10:33 +00:00
|
|
|
<!-- When running in Docker under a Windows host, tar is warning "file changed as we read it" for several files and returning exit code 1.
|
|
|
|
So this flag allows that to be ignored. -->
|
|
|
|
<PropertyGroup Condition="'$(IgnoreTarExitCode)' == ''">
|
|
|
|
<IgnoreTarExitCode>false</IgnoreTarExitCode>
|
|
|
|
<IgnoreTarExitCode Condition="'$(DOTNET_CORESDK_IGNORE_TAR_EXIT_CODE)' == '1'">true</IgnoreTarExitCode>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2018-10-29 20:31:03 +00:00
|
|
|
<ZipFileCreateFromDirectory
|
|
|
|
SourceDirectory="$(RedistLayoutPath)"
|
2018-12-06 21:31:59 +00:00
|
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk).zip"
|
|
|
|
OverwriteDestination="true" />
|
|
|
|
|
|
|
|
<ZipFileCreateFromDirectory
|
|
|
|
SourceDirectory="$(SdkInternalLayoutPath)"
|
2018-10-29 20:31:03 +00:00
|
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk).zip"
|
|
|
|
OverwriteDestination="true" />
|
|
|
|
|
2018-12-27 23:01:45 +00:00
|
|
|
<TarGzFileCreateFromDirectory
|
|
|
|
Condition=" '$(OSName)' != 'win' "
|
|
|
|
SourceDirectory="$(RedistLayoutPath)"
|
|
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk).tar.gz"
|
|
|
|
OverwriteDestination="true"
|
|
|
|
IgnoreExitCode="$(IgnoreTarExitCode)"/>
|
|
|
|
|
2018-10-29 20:31:03 +00:00
|
|
|
<TarGzFileCreateFromDirectory
|
2018-11-08 02:17:30 +00:00
|
|
|
Condition=" '$(OSName)' != 'win' "
|
2018-12-27 23:27:24 +00:00
|
|
|
SourceDirectory="$(SdkInternalLayoutPath)"
|
2018-10-29 20:31:03 +00:00
|
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk).tar.gz"
|
2018-11-08 16:10:33 +00:00
|
|
|
OverwriteDestination="true"
|
|
|
|
IgnoreExitCode="$(IgnoreTarExitCode)"/>
|
2018-10-29 20:31:03 +00:00
|
|
|
|
|
|
|
</Target>
|
|
|
|
</Project>
|