Skip to content

Remove use of runtime -internal archives #27687

Closed

Description

@mmitche

To bring source build and the Microsoft build in line, and reduce the overall size of the .NET build output (-internal archives correspond to about 1.3GB of in the total build drop), aspnetcore should remove using of the runtime -internal archives, instead using the customer archives and extracting the bits they need.

Activity

  1. changed the title [-]Remove using of runtime -internal archives[/-] [+]Remove use of runtime -internal archives[/+] on Nov 10, 2020
  2. mmitche commented on Nov 10, 2020

    @mmitche
    MemberAuthor

    See dotnet/installer#9042 for additional context.

  3. added
    area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
    on Nov 10, 2020
  4. added this to the 6.0.0 milestone on Nov 10, 2020
  5. dougbu commented on Nov 16, 2020

    @dougbu
    Contributor

    #27845 is failing because dotnet/runtime has stopped updating Microsoft.NETCore.App.Internal. But, is the version of Microsoft.NETCore.App.Runtime..win-x64 now guaranteed to be useful and correct in global.json❔ (Thought we had the .Internal package for a real reason.)

  6. mmitche commented on Nov 16, 2020

    @mmitche
    MemberAuthor

    #27737 is the right PR for this.

  7. self-assigned this
    on Jan 6, 2021
  8. wtgodbe commented on Jan 7, 2021

    @wtgodbe
    Member

    As far as I can tell, we don't download the -internal runtime archive at all - only the public one. Here are all of the references to it in the repo that I could find:

    <DotNetRuntimeArchiveFileName>dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</DotNetRuntimeArchiveFileName>
    <DotNetRuntimeDownloadUrl>$(DotNetAssetRootUrl)Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/$(DotNetRuntimeArchiveFileName)</DotNetRuntimeDownloadUrl>
    <DotNetRuntimePrivateDownloadUrl>$(DotNetPrivateAssetRootUrl)Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/$(DotNetRuntimeArchiveFileName)</DotNetRuntimePrivateDownloadUrl>
    <DotNetRuntimeArchive>$(BaseIntermediateOutputPath)$(DotNetRuntimeArchiveFileName)</DotNetRuntimeArchive>

    <ItemGroup>
    <RemoteAsset Include="Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x64.exe">
    <TargetFileName>dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x64.exe</TargetFileName>
    </RemoteAsset>
    <RemoteAsset Include="Runtime/$(MicrosoftNETCoreBrowserDebugHostTransportVersion)/dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x86.exe">
    <TargetFileName>dotnet-runtime-$(MicrosoftNETCoreAppRuntimeVersion)-win-x86.exe</TargetFileName>
    </RemoteAsset>
    </ItemGroup>
    <MakeDir Directories="$(DepsPath)" />
    <DownloadFile Condition=" ! Exists('$(DepsPath)%(RemoteAsset.TargetFileName)') "
    Uri="$(DotNetAssetRootUrl)%(RemoteAsset.Identity)"
    PrivateUri="$(DotNetPrivateAssetRootUrl)%(RemoteAsset.Identity)"
    PrivateUriSuffix="$(DotNetAssetRootAccessTokenSuffix)"
    DestinationPath="$(DepsPath)%(RemoteAsset.TargetFileName)" />

  9. dougbu commented on Jan 7, 2021

    @dougbu
    Contributor

    Closing this was the Right Thing:tm: to do. This was fixed in 634b50e aka #27737; we now use $(MicrosoftNETCoreBrowserDebugHostTransportVersion) to get the correct non-stable version when downloading runtimes.

    Thanks again @jkoritzinsky❕

  10. ghost locked as resolved and limited conversation to collaborators on Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedaffected-very-fewThis issue impacts very few customersarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkfeature-installersIncludes: Installersseverity-minorThis label is used by an internal tooltask

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions