@@ -363,18 +363,12 @@ This package is an internal implementation of the .NET Core SDK and is not meant
363363 Targets related to creating .zip/.tar.gz
364364 #########################################
365365 -->
366- <Target Name =" _DownloadAndExtractDotNetRuntime" >
367- <!-- Download dotnet runtime from web when not building from source -->
368- <DownloadFile Condition =" ! Exists('$(DotNetRuntimeArchive)') and '$(DotNetRuntimeArchiveSource)' == ''"
366+ <Target Name =" _DownloadAndExtractDotNetRuntime" Condition =" '$(DotNetBuildFromSource)' != 'true'" >
367+ <DownloadFile Condition =" ! Exists('$(DotNetRuntimeArchive)')"
369368 SourceUrl =" $(DotNetRuntimeDownloadUrl)$(DotNetAssetRootAccessTokenSuffix)"
370369 DestinationFolder =" $(BaseIntermediateOutputPath)"
371370 DestinationFileName =" $(DotNetRuntimeArchiveFileName)" />
372371
373- <!-- Copy from corefx build output when building from source -->
374- <Copy Condition =" ! Exists('$(DotNetRuntimeArchive)') and '$(DotNetRuntimeArchiveSource)' != ''"
375- SourceFiles =" $(DotNetRuntimeArchiveSource)"
376- DestinationFiles =" $(BaseIntermediateOutputPath)$(DotNetRuntimeArchiveFileName)" />
377-
378372 <!-- Extract the dotnet-runtime archive -->
379373 <Exec Condition =" '$(ArchiveExtension)' == '.tar.gz'"
380374 Command =" tar -xzf $(DotNetRuntimeArchive) -C $(RedistSharedFrameworkLayoutRoot)" />
@@ -447,7 +441,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
447441 Condition =" '$(ArchiveExtension)' == '.tar.gz'" />
448442 </Target >
449443
450- <Target Name =" _CreateRedistSharedFxArchive"
444+ <Target Condition =" '$(DotNetBuildFromSource)' != 'true'"
445+ Name =" _CreateRedistSharedFxArchive"
451446 Inputs =" @(SharedFxContent)"
452447 Outputs =" $(RedistArchiveOutputPath)" >
453448 <Message Importance =" High" Text =" $(MSbuildProjectFile) -> $(RedistArchiveOutputPath)" />
0 commit comments