@@ -172,8 +172,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
172
172
Outputs =" $(ZipArchiveOutputPath);$(TarArchiveOutputPath)"
173
173
Condition =" '$(IsPackable)' == 'true'" >
174
174
<PropertyGroup >
175
+ <_TarCommand >tar</_TarCommand >
175
176
<_TarCommand Condition =" Exists('$(RepoRoot).tools\tar.exe')" >$(RepoRoot).tools\tar.exe</_TarCommand >
176
- <_TarCommand Condition =" '$(_TarCommand)' == ''" >tar</_TarCommand >
177
177
178
178
<!-- For the tar packed with git, transform e.g. "C:\root\AspNetCore\File.tar.gz" to "/C/root/AspNetCore/File.tar.gz". -->
179
179
<_TarArchiveOutputPath >$(TarArchiveOutputPath)</_TarArchiveOutputPath >
@@ -187,17 +187,9 @@ This package is an internal implementation of the .NET Core SDK and is not meant
187
187
Overwrite =" true" />
188
188
189
189
<!-- Requires Windows 10 version 1803 or newer -->
190
- <Message Importance =" High" Text =" Processor Architecture: $(PROCESSOR_ARCHITECTURE)"
191
- Condition =" '$(OS)' == 'Windows_NT'" />
192
- <Message Importance =" High" Text =" Tar Command: $(_TarCommand) -czf $(_TarArchiveOutputPath) ."
193
- Condition =" '$(OS)' == 'Windows_NT'" />
190
+ <Message Importance =" High" Text =" Executing: $(_TarCommand) -czf $(_TarArchiveOutputPath) ." />
194
191
<Exec Command =" $(_TarCommand) -czf $(_TarArchiveOutputPath) ."
195
- WorkingDirectory =" $(TargetingPackLayoutRoot)"
196
- Condition =" '$(OS)' == 'Windows_NT'" />
197
-
198
- <Exec Command =" tar -czf $(_TarArchiveOutputPath) ."
199
- WorkingDirectory =" $(TargetingPackLayoutRoot)"
200
- Condition =" '$(OS)' != 'Windows_NT'" />
192
+ WorkingDirectory =" $(TargetingPackLayoutRoot)" />
201
193
202
194
<Message Importance =" High" Text =" $(MSBuildProjectName) -> $(TarArchiveOutputPath)" />
203
195
</Target >
0 commit comments