sdk-container-builds
sdk-container-builds copied to clipboard
Multi-RID build base image inference for Self-Contained apps is broken
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.