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