Skip to content

ASPNETCORE_URLS has the wrong value when publishing via k8s #9857

@davidfowl

Description

@davidfowl

Discussed in #9846

Originally posted by erikhermansson79 June 11, 2025
Hi,

I'm not confident enough to file this as an issue, but this line gave me trouble when I tried to deploy to my cluster:

EnvironmentVariables["ASPNETCORE_URLS"] = new(aspNetCoreUrlsExpression, $"http://+:${defaultPort}");

$"http://+:${defaultPort}" produces the value "http://+:$8080" and I had to remove the $-sign in front of the port to make it work.

Am I doing something wrong or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions