Skip to content

[dotnet run] No way to ignore arguments specified in launch profile #45832

@tmat

Description

@tmat

If arguments are specified on the command line the arguments specified in launch profile are ignored. However, at least one argument must be specified to ignore the launch profile arguments. There is no way to ignore them and pass no arguments to the app.

This is rather a corner case but the ability is needed to implement Aspire spec correctly in dotnet watch.

Proposal

We propose to add --no-launch-profile-arguments option that forces dotnet run to ignore arguments specified in the launch profile.

Alternatively, we could interpret trailing -- that's not followed by any arguments on the command line as explicitly asking to pass 0 arguments to the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions