Skip to content

dotnet exec doesn't parse command line environment directives #40035

@tmat

Description

@tmat

Describe the bug

dotnet exec doesn't parse command line environment directives

To Reproduce

>dotnet new console
>dotnet build

>dotnet exec bin\Debug\net8.0\repro.dll
Hello, World!

>dotnet [env:X=1] exec bin\Debug\net8.0\repro.dll
Unrecognized command or argument 'bin\Debug\net8.0\repro.dll'.

Further technical details

>dotnet --info
.NET SDK:
 Version:           8.0.200
 Commit:            438cab6a9d
 Workload version:  8.0.200-manifests.a7f084b6

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions