39648da4dc
* Add package with MSBuild SDK resolver for internal build consumption * Fix `dotnet pack` of redist.csproj without having built everything first
38 lines
1.7 KiB
XML
38 lines
1.7 KiB
XML
<Project>
|
|
<Target Name="GenerateArchives"
|
|
DependsOnTargets="GenerateLayout;GetCurrentRuntimeInformation"
|
|
BeforeTargets="AfterBuild">
|
|
|
|
<!-- 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>
|
|
|
|
<ZipFileCreateFromDirectory
|
|
SourceDirectory="$(RedistLayoutPath)"
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk).zip"
|
|
OverwriteDestination="true" />
|
|
|
|
<ZipFileCreateFromDirectory
|
|
SourceDirectory="$(SdkInternalLayoutPath)"
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk).zip"
|
|
OverwriteDestination="true" />
|
|
|
|
<TarGzFileCreateFromDirectory
|
|
Condition=" '$(OSName)' != 'win' "
|
|
SourceDirectory="$(RedistLayoutPath)"
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk).tar.gz"
|
|
OverwriteDestination="true"
|
|
IgnoreExitCode="$(IgnoreTarExitCode)"/>
|
|
|
|
<TarGzFileCreateFromDirectory
|
|
Condition=" '$(OSName)' != 'win' "
|
|
SourceDirectory="$(SdkInternalLayoutPath)"
|
|
DestinationArchive="$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk).tar.gz"
|
|
OverwriteDestination="true"
|
|
IgnoreExitCode="$(IgnoreTarExitCode)"/>
|
|
|
|
</Target>
|
|
</Project>
|