@@ -170,8 +170,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
170170 Outputs =" $(ZipArchiveOutputPath);$(TarArchiveOutputPath)"
171171 Condition =" '$(IsPackable)' == 'true'" >
172172 <PropertyGroup >
173+ <_TarCommand >tar</_TarCommand >
173174 <_TarCommand Condition =" Exists('$(RepoRoot).tools\tar.exe')" >$(RepoRoot).tools\tar.exe</_TarCommand >
174- <_TarCommand Condition =" '$(_TarCommand)' == ''" >tar</_TarCommand >
175175
176176 <!-- For the tar packed with git, transform e.g. "C:\root\AspNetCore\File.tar.gz" to "/C/root/AspNetCore/File.tar.gz". -->
177177 <_TarArchiveOutputPath >$(TarArchiveOutputPath)</_TarArchiveOutputPath >
@@ -185,17 +185,9 @@ This package is an internal implementation of the .NET Core SDK and is not meant
185185 Overwrite =" true" />
186186
187187 <!-- 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) ." />
192189 <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)" />
199191
200192 <Message Importance =" High" Text =" $(MSBuildProjectName) -> $(TarArchiveOutputPath)" />
201193 </Target >
0 commit comments