|
25 | 25 | </RuntimeInstallers>
|
26 | 26 | </ItemGroup>
|
27 | 27 |
|
28 |
| - <Target Name="FetchDependencies" BeforeTargets="Restore;CollectPackageReferences"> |
29 |
| - <PropertyGroup> |
30 |
| - <DotNetAssetRootUrl Condition=" '$(DotNetAssetRootUrl)' == '' ">https://dotnetcli.azureedge.net/dotnet/</DotNetAssetRootUrl> |
31 |
| - <DotNetAssetRootUrl Condition=" ! $(DotNetAssetRootUrl.EndsWith('/'))">$(DotNetAssetRootUrl)/</DotNetAssetRootUrl> |
32 |
| - <DotNetPrivateAssetRootUrl Condition=" '$(DotNetPrivateAssetRootUrl)' == '' ">https://dotnetclimsrc.azureedge.net/dotnet/</DotNetPrivateAssetRootUrl> |
33 |
| - <DotNetPrivateAssetRootUrl Condition=" ! $(DotNetPrivateAssetRootUrl.EndsWith('/'))">$(DotNetPrivateAssetRootUrl)/</DotNetPrivateAssetRootUrl> |
34 |
| - </PropertyGroup> |
35 |
| - |
| 28 | + <!-- |
| 29 | + Runs before FetchDependencies but can't be depended up because this sets up the item group that target |
| 30 | + uses for batching. |
| 31 | + --> |
| 32 | + <Target Name="CollectDependencies" BeforeTargets="Restore;CollectPackageReferences"> |
36 | 33 | <!-- Use the BrowserDebugHost as a sentinel for the nonshipping version for NETCoreApp. -->
|
37 | 34 | <ItemGroup>
|
38 |
| - <RemoteAsset Include="Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x64.exe"> |
| 35 | + <RemoteAsset Include="$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x64.exe"> |
39 | 36 | <TargetFileName>dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x64.exe</TargetFileName>
|
40 | 37 | </RemoteAsset>
|
41 |
| - <RemoteAsset Include="Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x86.exe"> |
| 38 | + <RemoteAsset Include="$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x86.exe"> |
42 | 39 | <TargetFileName>dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x86.exe</TargetFileName>
|
43 | 40 | </RemoteAsset>
|
44 |
| - <RemoteAsset Include="Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-arm64.exe"> |
| 41 | + <RemoteAsset Include="$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-arm64.exe"> |
45 | 42 | <TargetFileName>dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-arm64.exe</TargetFileName>
|
46 | 43 | </RemoteAsset>
|
47 | 44 | </ItemGroup>
|
48 | 45 |
|
49 | 46 | <MakeDir Directories="$(DepsPath)" />
|
| 47 | + </Target> |
| 48 | + |
| 49 | + <Target Name="FetchDependencies" BeforeTargets="Restore;CollectPackageReferences" |
| 50 | + Outputs="$(DepsPath)%(RemoteAsset.TargetFilename)"> |
| 51 | + <!-- |
| 52 | + Try various places to find the runtime. It's either released (use official version), public but |
| 53 | + unreleased (use dotnetbuilds/public), or internal and unreleased (use dotnetbuilds/internal). |
| 54 | + --> |
| 55 | + <ItemGroup> |
| 56 | + <UrisToDownload Remove="@(UrisToDownload)" /> |
| 57 | + <UrisToDownload Include="https://dotnetcli.azureedge.net/dotnet/Runtime/%(RemoteAsset.Identity)" /> |
| 58 | + <UrisToDownload Include="https://dotnetbuilds.azureedge.net/public/Runtime/%(RemoteAsset.Identity)" /> |
| 59 | + <UrisToDownload Include="https://dotnetbuilds.azureedge.net/internal/Runtime/%(RemoteAsset.Identity)" |
| 60 | + Condition=" '$(DotnetRuntimeSourceFeedKey)' != '' "> |
| 61 | + <token>$(DotnetRuntimeSourceFeedKey)</token> |
| 62 | + </UrisToDownload> |
| 63 | + </ItemGroup> |
50 | 64 |
|
51 |
| - <DownloadFile Condition=" ! Exists('$(DepsPath)%(RemoteAsset.TargetFileName)') " |
52 |
| - Uri="$(DotNetAssetRootUrl)%(RemoteAsset.Identity)" |
53 |
| - PrivateUri="$(DotNetPrivateAssetRootUrl)%(RemoteAsset.Identity)" |
54 |
| - PrivateUriSuffix="$(DotNetAssetRootAccessTokenSuffix)" |
55 |
| - DestinationPath="$(DepsPath)%(RemoteAsset.TargetFileName)" /> |
| 65 | + <DownloadFile Condition=" ! Exists('$(DepsPath)%(RemoteAsset.TargetFilename)') " |
| 66 | + Uris="@(UrisToDownload)" |
| 67 | + DestinationPath="$(DepsPath)%(RemoteAsset.TargetFilename)" /> |
56 | 68 | </Target>
|
57 | 69 |
|
58 |
| - <Target Name="ExtractPropertiesFromDotNetMsi" DependsOnTargets="FetchDependencies" BeforeTargets="BeforeBuild"> |
| 70 | + <Target Name="ExtractPropertiesFromDotNetMsi" DependsOnTargets="CollectDependencies;FetchDependencies" BeforeTargets="BeforeBuild"> |
59 | 71 | <!-- Create properties that holds the executable name. These are passed to the bundles so we can reference them as variables
|
60 | 72 | from inside the ExePackage authoring. -->
|
61 | 73 | <CreateProperty Value="%(RuntimeInstallers.Filename)%(Extension)">
|
|
0 commit comments