Skip to content

dotnet run with invalid launch profile name does not populate DOTNET_LAUNCH_PROFILE with actual profile selected. #35197

Open
@mitchdenny

Description

@mitchdenny

Describe the bug

I just recently added support for populating an environment variable (DOTNET_LAUNCH_PROFILE) when a developer uses dotnet run or dotnet watch. I was testing this feature out with the nightly build and found an inconsistency between dotnet watch and dotnet run. If I specify a launch profile on the command-line that does not exist in dotnet watch it will populate the variable with the launch profile that is actually selected (by default the first in the list). Unfortunately I didn't implement the same behavior with dotnet run so the variable isn't populated.

Capturing the problem in this issue and self-assigning to get in before RC2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions