@@ -56,9 +56,9 @@ This package is an internal implementation of the .NET Core SDK and is not meant
56
56
<LayoutTargetDir >$(TargetingPackLayoutRoot)$(TargetingPackSubPath)</LayoutTargetDir >
57
57
<LocalInstallationOutputPath >$(LocalDotNetRoot)$(TargetingPackSubPath)</LocalInstallationOutputPath >
58
58
59
- <ArchiveOutputFileName Condition = " '$(TargetRuntimeIdentifier)' == 'win-x64' " >aspnetcore-targeting-pack-$(PackageVersion).zip </ArchiveOutputFileName >
60
- <ArchiveOutputFileName Condition = " '$(TargetRuntimeIdentifier)' == 'linux-x64' " >aspnetcore-targeting-pack-$(PackageVersion).tar.gz</ ArchiveOutputFileName >
61
- <ArchiveOutputPath >$(InstallersOutputPath)$(ArchiveOutputFileName)</ ArchiveOutputPath >
59
+ <ArchiveOutputFileName >aspnetcore-targeting-pack-$(PackageVersion)</ArchiveOutputFileName >
60
+ <ZipArchiveOutputPath >$(InstallersOutputPath)$(ArchiveOutputFileName).zip</ ZipArchiveOutputPath >
61
+ <TarArchiveOutputPath >$(InstallersOutputPath)$(ArchiveOutputFileName).tar.gz</ TarArchiveOutputPath >
62
62
</PropertyGroup >
63
63
64
64
<PropertyGroup >
@@ -161,18 +161,17 @@ This package is an internal implementation of the .NET Core SDK and is not meant
161
161
162
162
<Target Name =" _CreateTargetingPackArchive"
163
163
Inputs =" @(RefPackContent)"
164
- Outputs =" $(ArchiveOutputPath )"
164
+ Outputs =" $(ZipArchiveOutputPath);$(TarArchiveOutputPath )"
165
165
Condition =" '$(IsPackable)' == 'true'" >
166
166
<ZipDirectory
167
167
SourceDirectory =" $(TargetingPackLayoutRoot)"
168
- DestinationFile =" $(ArchiveOutputPath )"
169
- Overwrite =" true"
170
- Condition = " '$(TargetRuntimeIdentifier)' == 'win-x64' " / >
168
+ DestinationFile =" $(ZipArchiveOutputPath )"
169
+ Overwrite =" true" />
170
+ <!-- Requires Windows 10 version 1803 or newer -- >
171
171
<Exec
172
- Command =" tar -czf $(ArchiveOutputPath) ."
173
- WorkingDirectory =" $(TargetingPackLayoutRoot)"
174
- Condition =" '$(TargetRuntimeIdentifier)' == 'linux-x64'" />
175
- <Message Importance =" High" Text =" $(MSBuildProjectName) -> $(ArchiveOutputPath)" />
172
+ Command =" tar -czf $(TarArchiveOutputPath) ."
173
+ WorkingDirectory =" $(TargetingPackLayoutRoot)" />
174
+ <Message Importance =" High" Text =" $(MSBuildProjectName) -> $(TarArchiveOutputPath)" />
176
175
</Target >
177
176
178
177
</Project >
0 commit comments