diff --git a/src/dotnet/commands/dotnet-test/LocalizableStrings.cs b/src/dotnet/commands/dotnet-test/LocalizableStrings.cs index 16159aa0f..0f69a5cc8 100644 --- a/src/dotnet/commands/dotnet-test/LocalizableStrings.cs +++ b/src/dotnet/commands/dotnet-test/LocalizableStrings.cs @@ -55,8 +55,5 @@ public const string RunSettingsArgsHelpText = @"Any extra commandline runsettings arguments that should be passed to vstest. See 'dotnet vstest --help' for available options. Example: -- RunConfiguration.ResultsDirectory=""C:\users\user\desktop\Results Directory"" MSTest.DeploymentEnabled=false"; - - public const string CmdResultsDirectoryDescription = @"The test results directory will be created in the specified path if it does not exist. - Example: --results-directory "; } } diff --git a/src/dotnet/commands/dotnet-test/Program.cs b/src/dotnet/commands/dotnet-test/Program.cs index 26a57f494..89d0c3595 100644 --- a/src/dotnet/commands/dotnet-test/Program.cs +++ b/src/dotnet/commands/dotnet-test/Program.cs @@ -83,11 +83,6 @@ namespace Microsoft.DotNet.Tools.Test LocalizableStrings.CmdNoBuildDescription, CommandOptionType.NoValue); - var resultsDirectoryOption = cmd.Option( - "-r|--results-directory", - LocalizableStrings.CmdResultsDirectoryDescription, - CommandOptionType.SingleValue); - CommandOption verbosityOption = MSBuildForwardingApp.AddVerbosityOption(cmd); cmd.OnExecute(() => @@ -134,11 +129,6 @@ namespace Microsoft.DotNet.Tools.Test msbuildArgs.Add($"/p:TargetFramework={frameworkOption.Value()}"); } - if (resultsDirectoryOption.HasValue()) - { - msbuildArgs.Add($"/p:VSTestResultsDirectory={resultsDirectoryOption.Value()}"); - } - if (outputOption.HasValue()) { msbuildArgs.Add($"/p:OutputPath={outputOption.Value()}");