@@ -32,8 +32,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
32
32
33
33
<!-- Use the BrowserDebugHost as a sentinel for the nonshipping version for .NETCoreApp -->
34
34
<DotNetRuntimeArchiveFileName >dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</DotNetRuntimeArchiveFileName >
35
- <DotNetRuntimeDownloadUrl >$(DotNetAssetRootUrl)Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/$(DotNetRuntimeArchiveFileName)</DotNetRuntimeDownloadUrl >
36
- <DotNetRuntimePrivateDownloadUrl >$(DotNetPrivateAssetRootUrl)Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/$(DotNetRuntimeArchiveFileName)</DotNetRuntimePrivateDownloadUrl >
35
+ <DotNetRuntimeDownloadPath >Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/$(DotNetRuntimeArchiveFileName)</DotNetRuntimeDownloadPath >
37
36
<DotNetRuntimeArchive >$(BaseIntermediateOutputPath)$(DotNetRuntimeArchiveFileName)</DotNetRuntimeArchive >
38
37
39
38
<!-- Setting this suppresses getting documentation .xml files in the shared runtime output. -->
@@ -502,11 +501,20 @@ This package is an internal implementation of the .NET Core SDK and is not meant
502
501
#########################################
503
502
-->
504
503
<Target Name =" _DownloadAndExtractDotNetRuntime" Condition =" '$(DotNetBuildFromSource)' != 'true'" >
505
- <DownloadFile Condition =" ! Exists('$(DotNetRuntimeArchive)')"
506
- Uri =" $(DotNetRuntimeDownloadUrl)"
507
- PrivateUri =" $(DotNetRuntimePrivateDownloadUrl)"
508
- PrivateUriSuffix =" $(DotNetAssetRootAccessTokenSuffix)"
509
- DestinationPath =" $(DotNetRuntimeArchive)" />
504
+ <!-- Try various places to find the runtime. It's either released (use official version),
505
+ public but un-released (use dotnetbuilds/public), or internal and unreleased (use dotnetbuilds/internal) -->
506
+ <ItemGroup >
507
+ <UrisToDownload Include =" https://dotnetcli.azureedge.net/dotnet/$(DotNetRuntimeDownloadPath)" />
508
+ <UrisToDownload Include =" https://dotnetbuilds.azureedge.net/public/$(DotNetRuntimeDownloadPath)" />
509
+ <UrisToDownload Include =" https://dotnetbuilds.azureedge.net/internal/$(DotNetRuntimeDownloadPath)" >
510
+ <token >$(DotnetRuntimeSourceFeedKey)</token >
511
+ </UrisToDownload >
512
+ </ItemGroup >
513
+
514
+ <DownloadFile Condition =" !Exists('$(DotNetRuntimeArchive)') "
515
+ Uris =" @(UrisToDownload)"
516
+ DestinationPath =" %(DotNetRuntimeArchive)" />
517
+
510
518
<RemoveDir Directories =" $(RedistSharedFrameworkLayoutRoot)" />
511
519
<MakeDir Directories =" $(RedistSharedFrameworkLayoutRoot)" />
512
520
0 commit comments