Skip to content

Add '--self-contained' and '--no-self-contained' options to dotnet test command #31066

@hknutsen

Description

@hknutsen

Is your feature request related to a problem? Please describe.

Running:

dotnet test --configuration Release --runtime win-x86 --collect "XPlat Code Coverage"

Gives the following warning:

warning NETSDK1179: One of '--self-contained' or '--no-self-contained' options are required when '--runtime' is used.

However the dotnet test command does not support the --self-contained or --no-self-contained options.

Describe the solution you'd like

Add --self-contained and --no-self-contained option to dotnet test command.

Could be considered an alternate solution to #27151

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions