Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Consume shared components from external URI in non-1xx feature band #49607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

mthalman
Copy link
Member

Fixes dotnet/dotnet#1109

For non-1xx feature bands, shared components like runtime and aspnetcore are not produced directly by the build. Only the 1xx feature band produces them. So in the non-1xx feature bands of the VMR, the sdk needs to be able to download those shared component artifacts from external URIs rather than expecting them to exist in a local directory feed.

This applies to Microsoft builds only since those are allowed to download external artifacts like this. The work to support this for source-only builds is tracked with dotnet/dotnet#1111.

@mthalman mthalman requested review from a team and Copilot June 30, 2025 19:14
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds logic to allow the SDK to download shared components from external URIs when building non-1xx feature bands or outside the VMR, since only the 1xx band produces those artifacts locally.

  • Refactors the MSBuild condition on the <ItemGroup> to include VersionSDKMinor != '1' alongside DotNetBuildFromVMR != 'true'
  • Updates the XML comment to explain the new behavior for non-1xx feature bands
Comments suppressed due to low confidence (1)

src/Layout/redist/targets/RestoreLayout.targets:313

  • Consider adding or updating functional tests or MSBuild integration tests to verify that UrisToDownload items are correctly included when building non-1xx feature bands or outside the VMR. This will catch regressions if the condition logic changes.
    <ItemGroup Condition="'$(DotNetBuildFromVMR)' != 'true' or '$(VersionSDKMinor)' != '1'">

@mthalman mthalman merged commit 6a9fe05 into dotnet:main Jul 2, 2025
28 checks passed
@mthalman mthalman deleted the issue1109 branch July 2, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature bands] Consume shared component artifacts from storage account instead of local directory feed
4 participants