Add more components to download / layout
This commit is contained in:
parent
1344cb26c2
commit
584ec3c3d6
2 changed files with 62 additions and 6 deletions
|
@ -42,7 +42,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.LogMessage($"Downloading '{Uri}' to '{DestinationPath}'");
|
Log.LogMessage(MessageImportance.High, $"Downloading '{Uri}' to '{DestinationPath}'");
|
||||||
|
|
||||||
using (var httpClient = new HttpClient())
|
using (var httpClient = new HttpClient())
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,6 +73,58 @@
|
||||||
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
<RelativeLayoutPath></RelativeLayoutPath>
|
<RelativeLayoutPath></RelativeLayoutPath>
|
||||||
</BundledLayoutComponent>
|
</BundledLayoutComponent>
|
||||||
|
|
||||||
|
<BundledInstallerComponent Include="DownloadedRuntimeDepsInstallerFile"
|
||||||
|
Condition="('$(IsDebianBaseDistro)' == 'true' OR '$(IsRPMBasedDistro)' == 'true') And '$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
||||||
|
<BaseUrl>$(CoreSetupRootUrl)$(MicrosoftNETCoreAppPackageVersion)</BaseUrl>
|
||||||
|
<DownloadFileName>$(DownloadedRuntimeDepsInstallerFileName)</DownloadFileName>
|
||||||
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
|
</BundledInstallerComponent>
|
||||||
|
|
||||||
|
<BundledInstallerComponent Include="DownloadedSharedFrameworkInstallerFile"
|
||||||
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
||||||
|
<BaseUrl>$(CoreSetupRootUrl)$(MicrosoftNETCoreAppPackageVersion)</BaseUrl>
|
||||||
|
<DownloadFileName>$(DownloadedSharedFrameworkInstallerFileName)</DownloadFileName>
|
||||||
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
|
</BundledInstallerComponent>
|
||||||
|
|
||||||
|
<BundledInstallerComponent Include="DownloadedSharedHostInstallerFile"
|
||||||
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
||||||
|
<BaseUrl>$(CoreSetupRootUrl)$(SharedHostVersion)</BaseUrl>
|
||||||
|
<DownloadFileName>$(DownloadedSharedHostInstallerFileName)</DownloadFileName>
|
||||||
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
|
</BundledInstallerComponent>
|
||||||
|
|
||||||
|
<BundledInstallerComponent Include="DownloadedHostFxrInstallerFile"
|
||||||
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
||||||
|
<BaseUrl>$(CoreSetupRootUrl)$(HostFxrVersion)</BaseUrl>
|
||||||
|
<DownloadFileName>$(DownloadedHostFxrInstallerFileName)</DownloadFileName>
|
||||||
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
|
</BundledInstallerComponent>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition=" '$(IncludeAspNetCoreRuntime)' != 'false' ">
|
||||||
|
<BundledLayoutComponent Include="AspNetCoreSharedFxArchiveFile"
|
||||||
|
Condition="( '$(AspNetCoreSharedFxArchiveRid)' == 'linux-arm' OR !$(Architecture.StartsWith('arm')) )">
|
||||||
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetCoreVersion)</BaseUrl>
|
||||||
|
<DownloadFileName>$(AspNetCoreSharedFxArchiveFileName)</DownloadFileName>
|
||||||
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
|
<RelativeLayoutPath></RelativeLayoutPath>
|
||||||
|
</BundledLayoutComponent>
|
||||||
|
|
||||||
|
<BundledInstallerComponent Include="DownloadedAspNetCoreSharedFxInstallerFile"
|
||||||
|
Condition="'$(SkipBuildingInstallers)' != 'true' AND '$(DownloadedAspNetCoreSharedFxInstallerFile)' != '' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
||||||
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetCoreVersion)</BaseUrl>
|
||||||
|
<DownloadFileName>$(DownloadedAspNetCoreSharedFxInstallerFileName)</DownloadFileName>
|
||||||
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
|
</BundledInstallerComponent>
|
||||||
|
|
||||||
|
<BundledInstallerComponent Include="AspNetCoreSharedFxBaseRuntimeVersionFile"
|
||||||
|
Condition="!$(Architecture.StartsWith('arm'))">
|
||||||
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetCoreVersion)</BaseUrl>
|
||||||
|
<DownloadFileName>$(AspNetCoreSharedFxBaseRuntimeVersionFileName)</DownloadFileName>
|
||||||
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
||||||
|
</BundledInstallerComponent>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
|
@ -83,17 +135,21 @@
|
||||||
<BundledLayoutComponent>
|
<BundledLayoutComponent>
|
||||||
<DownloadDestination>$(IntermediateOutputPath)downloads\%(DownloadFileName)</DownloadDestination>
|
<DownloadDestination>$(IntermediateOutputPath)downloads\%(DownloadFileName)</DownloadDestination>
|
||||||
</BundledLayoutComponent>
|
</BundledLayoutComponent>
|
||||||
<BundledLayoutComponent>
|
<BundledInstallerComponent>
|
||||||
|
<DownloadDestination>$(IntermediateOutputPath)downloads\%(DownloadFileName)</DownloadDestination>
|
||||||
|
</BundledInstallerComponent>
|
||||||
|
<ComponentToDownload Include="@(BundledLayoutComponent);@(BundledInstallerComponent)">
|
||||||
<ShouldDownload Condition="!Exists('%(DownloadDestination)')">true</ShouldDownload>
|
<ShouldDownload Condition="!Exists('%(DownloadDestination)')">true</ShouldDownload>
|
||||||
</BundledLayoutComponent>
|
</ComponentToDownload>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<DownloadFile Condition=" '@(BundledLayoutComponent)' != '' And '%(BundledLayoutComponent.ShouldDownload)' == 'true'"
|
<DownloadFile Condition=" '@(ComponentToDownload)' != '' And '%(ComponentToDownload.ShouldDownload)' == 'true'"
|
||||||
Uri="%(BundledLayoutComponent.BaseUrl)/%(BundledLayoutComponent.DownloadFileName)"
|
Uri="%(ComponentToDownload.BaseUrl)/%(ComponentToDownload.DownloadFileName)"
|
||||||
DestinationPath="%(BundledLayoutComponent.DownloadDestination)" />
|
DestinationPath="%(ComponentToDownload.DownloadDestination)" />
|
||||||
|
|
||||||
<ExtractArchiveToDirectory SourceArchive="%(BundledLayoutComponent.DownloadDestination)"
|
<ExtractArchiveToDirectory SourceArchive="%(BundledLayoutComponent.DownloadDestination)"
|
||||||
DestinationDirectory="$(PublishDir)" />
|
DestinationDirectory="$(PublishDir)" />
|
||||||
|
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue