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