@@ -85,9 +85,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
85
85
<LayoutTargetDir >$(TargetingPackLayoutRoot)$(TargetingPackSubPath)</LayoutTargetDir >
86
86
<LocalInstallationOutputPath >$(LocalDotNetRoot)$(TargetingPackSubPath)</LocalInstallationOutputPath >
87
87
88
- <ArchiveOutputFileName >aspnetcore-targeting-pack-$(PackageVersion)</ArchiveOutputFileName >
89
- <ZipArchiveOutputPath >$(InstallersOutputPath)$(ArchiveOutputFileName).zip</ZipArchiveOutputPath >
90
- <TarArchiveOutputPath >$(InstallersOutputPath)$(ArchiveOutputFileName).tar.gz</TarArchiveOutputPath >
88
+ <ArchiveOutputFileName >aspnetcore-targeting-pack-$(PackageVersion)-$(TargetRuntimeIdentifier)</ArchiveOutputFileName >
89
+ <ArchiveOutputPath >$(InstallersOutputPath)$(ArchiveOutputFileName)$(ArchiveExtension)</ArchiveOutputPath >
91
90
</PropertyGroup >
92
91
93
92
<PropertyGroup >
@@ -221,29 +220,17 @@ This package is an internal implementation of the .NET Core SDK and is not meant
221
220
222
221
<Target Name =" _CreateTargetingPackArchive"
223
222
Inputs =" @(RefPackContent)"
224
- Outputs =" $(ZipArchiveOutputPath);$(TarArchiveOutputPath)"
225
- Condition =" '$(IsPackable)' == 'true' " >
226
- <PropertyGroup >
227
- <_TarCommand >tar</_TarCommand >
228
- <_TarCommand Condition =" Exists('$(RepoRoot).tools\tar.exe')" >"$(RepoRoot).tools\tar.exe"</_TarCommand >
229
-
230
- <!-- For the tar packed with git, transform e.g. "C:\root\AspNetCore\File.tar.gz" to "/C/root/AspNetCore/File.tar.gz". -->
231
- <_TarArchiveOutputPath >$(TarArchiveOutputPath)</_TarArchiveOutputPath >
232
- <_TarArchiveOutputPath
233
- Condition =" Exists('$(repoRoot)\.tools\tar.fromGit')" >/$(TarArchiveOutputPath.Replace('\','/').Replace(':',''))</_TarArchiveOutputPath >
234
- </PropertyGroup >
235
-
223
+ Outputs =" $(ArchiveOutputPath)" >
236
224
<ZipDirectory
237
225
SourceDirectory =" $(TargetingPackLayoutRoot)"
238
- DestinationFile =" $(ZipArchiveOutputPath)"
239
- Overwrite =" true" />
240
-
241
- <!-- Requires Windows 10 version 1803 or newer -->
242
- <Message Importance =" High" Text =" Executing: $(_TarCommand) -czf " $(_TarArchiveOutputPath)" ." />
243
- <Exec Command =" $(_TarCommand) -czf " $(_TarArchiveOutputPath)" ."
244
- WorkingDirectory =" $(TargetingPackLayoutRoot)" />
245
-
246
- <Message Importance =" High" Text =" $(MSBuildProjectName) -> $(TarArchiveOutputPath)" />
226
+ DestinationFile =" $(ArchiveOutputPath)"
227
+ Overwrite =" true"
228
+ Condition =" '$(ArchiveExtension)' == '.zip'" />
229
+ <Exec
230
+ Command =" tar -czf $(ArchiveOutputPath) ."
231
+ WorkingDirectory =" $(TargetingPackLayoutRoot)"
232
+ Condition =" '$(ArchiveExtension)' == '.tar.gz'" />
233
+ <Message Importance =" High" Text =" $(MSBuildProjectName) -> $(ArchiveOutputPath)" />
247
234
</Target >
248
235
249
236
<Target Name =" IncludeFrameworkListFile"
0 commit comments