Skip to content

dotnet run: -e|--environment help string could be confusing #50794

@antmdvs

Description

@antmdvs

Describe the bug

dotnet run --help displays a confusing line for the -e|--environment option:

  -e, --environment <NAME="VALUE">        Sets the value of an environment variable.
                                          Creates the variable if it does not exist, overrides if it does.
                                          👉 This will force the tests to be run in an isolated process. 👈
                                          This argument can be specified multiple times to provide multiple variables.

I believe the line "This will force the tests to be run in an isolated process." was only intended for dotnet test not dotnet run as it only makes sense in the testing context.

To Reproduce

  1. Open Command Prompt or Pwsh and enter: dotnet run --help
  2. Observe the output for "-e, --environment" contains the line " This will force the tests to be run in an isolated process."

Exceptions (if any)

Further technical details

details of dotnet --info

.NET SDK: Version: 10.0.100-rc.1.25451.107 Commit: 2db1f5ee2b Workload version: 10.0.100-manifests.a6e8bec0 MSBuild version: 17.15.0-preview-25451-107+2db1f5ee2

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-rc.1.25451.107\

- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions