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

Skip to content

fix ordering so that getting Container config establishes RIDness #49590

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Jun 27, 2025

Fixes #49586 by making sure that the Target that sets the conditions for the execution args to be computed is called in every case where ComputeContainerConfig might be called standalone.

@Copilot Copilot AI review requested due to automatic review settings June 27, 2025 22:48
@baronfel baronfel requested a review from a team as a code owner June 27, 2025 22:48
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

This PR fixes the target dependency ordering to ensure container RIDness is correctly established before computing the container configuration. The changes remove the redundant _IsSingleRIDBuild property from tests and update target dependencies in the Microsoft.NET.Build.Containers.targets file.

  • Removed the assignment of "_IsSingleRIDBuild" from test targets.
  • Updated target dependencies by inserting _ContainerEstablishRIDNess in ComputeContainerConfig and related targets.
  • Reordered the publish target dependencies to align with the new ordering requirement.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/Microsoft.NET.Build.Containers.IntegrationTests/TargetsTests.cs Removed redundant property to reflect new dependency ordering.
src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets Updated target dependencies to ensure proper ordering for establishing RIDness.

@github-actions github-actions bot added the Area-Containers Related to dotnet SDK containers functionality label Jun 27, 2025
@baronfel baronfel force-pushed the fix-container-metadata-target-dependencies branch from 9b4dd38 to f149378 Compare June 28, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Containers Related to dotnet SDK containers functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Containers targets don't ensure that ComputeContainerConfig has all necessary data to compute runtime-specific information
1 participant