sdk-container-builds icon indicating copy to clipboard operation
sdk-container-builds copied to clipboard

Multi-RID build base image inference for Self-Contained apps is broken

Open baronfel opened this issue 9 months ago • 0 comments

We infer base images off of several project properties. In the case of SelfContained/PublishSelfContained these signal a dependence on the runtime-deps image for the TFM in question. However, because the SDK's publish functionality was oriented around single-RID publishing, the use of those properties causes the SDK to infer a single-RID build. As a result, we tell users to condition those properties to only trigger on a single-RID build, which then confuses the inference algorithm. So users must explicitly specify a ContainerBaseImage of runtime-deps to get the optimum result.

We should try to find a design with the SDK team where multi-RID publishing and these kinds of corner cases are handled more gracefully.

baronfel avatar Mar 10 '25 14:03 baronfel