You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET SDK multi-architecture container publishing silently truncates custom ContainerEnvironmentVariable values at the first colon. Publishing succeeds, but the resulting images contain incorrect configuration.
For example, ASPNETCORE_URLS=http://+:8080 becomes ASPNETCORE_URLS=http, causing ASP.NET Core startup to fail:
Inspect the environment variables in both platform images.
Expected:ASPNETCORE_URLS=http://+:8080
Actual behavior
Inspect the environment variables in both platform images.
Actual:ASPNETCORE_URLS=http
Is this a regression?
No response
Are there any workarounds?
No response
dotnet --info output
IDE version
No response
Other details
Observed in actual amd64 and arm64 images published with SDK 11.0.100.
Reproduced the serialization/reconstruction behavior with an offline MSBuild probe using SDK 10.0.300.
The previous single-architecture publish preserved the URL.
%3A escaping still results in truncation; double escaping leaves encoded text instead of the literal URL.
Custom container labels appear to use similar parsing and may also be affected.
Suspected cause
The multi-RID publishing targets serialize environment variables as Identity:Value, then reconstruct the value using Split(':')[1]. Any additional colons in the value are discarded.
🟩 Confidence:high - The issue directly identifies container publishing targets and the Containers CODEOWNERS section is unambiguous.
➡️ Summary: Multi-RID container publishing truncates ContainerEnvironmentVariable values at the first colon, e.g. ASPNETCORE_URLS becomes "http". Fix the serialization/reconstruction in Microsoft.NET.Build.Containers.targets to preserve additional colons.
Generated by 🏷️ Issue Triage for #57146 · copilot · auto · ~14 AIC · ⌖ ~1 AIC · ⊞ 14.6K · ◷
Activity
github-actions commentedon Nov 16, 2026
🎯 Agentic Issue Triage
Triage Assessment:
@mthalman| @dotnet/sdk-container-builds-maintainershigh- The issue directly identifies container publishing targets and the Containers CODEOWNERS section is unambiguous.➡️ Summary: Multi-RID container publishing truncates ContainerEnvironmentVariable values at the first colon, e.g. ASPNETCORE_URLS becomes "http". Fix the serialization/reconstruction in Microsoft.NET.Build.Containers.targets to preserve additional colons.
github-actions commentedon Nov 17, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪