Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions src/Cli/dotnet/Commands/CliCommandStrings.resx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Expand Down Expand Up @@ -549,9 +549,6 @@ This is equivalent to deleting project.assets.json.</value>
<data name="CmdPrereleaseDescription" xml:space="preserve">
<value>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</value>
</data>
<data name="CmdProjectDescription" xml:space="preserve">
<value>Defines the path of the project file to run (folder name or full path). If not specified, it defaults to the current directory.</value>
</data>
<data name="CmdProjectPathName" xml:space="preserve">
<value>PROJECT_PATH</value>
</data>
Expand Down Expand Up @@ -593,12 +590,23 @@ If not specified the file will be generated inside the default 'TestResults' dir
<data name="CmdSettingsFile" xml:space="preserve">
<value>SETTINGS_FILE</value>
</data>
<data name="CmdSolutionDescription" xml:space="preserve">
<value>Defines the path of the solution file to run. If not specified, it defaults to the current directory.</value>
</data>
<data name="CmdSolutionPathName" xml:space="preserve">
<value>SOLUTION_PATH</value>
</data>
<data name="CmdProjectDescriptionFormat" xml:space="preserve">
<value>Defines the path of the project file to {0}. Use path to the project file, or path to the directory containing the project file. If not specified, it defaults to the current directory.</value>
<comment>{0} is the verb (e.g., "test", "run")</comment>
</data>
<data name="CmdSolutionDescriptionFormat" xml:space="preserve">
<value>Defines the path of the solution file to {0}. Use path to the solution file, or path to the directory containing the solution file. If not specified, it defaults to the current directory.</value>
<comment>{0} is the verb (e.g., "test", "run")</comment>
</data>
<data name="VerbRun" xml:space="preserve">
<value>run</value>
</data>
<data name="VerbTest" xml:space="preserve">
<value>test</value>
</data>
<data name="CmdSourceOption" xml:space="preserve">
<value>SOURCE</value>
</data>
Expand Down Expand Up @@ -704,9 +712,6 @@ See https://aka.ms/dotnet-test/mtp for more information.</value>
<value>Do not attempt to use launchSettings.json or [app].run.json to configure the application.</value>
<comment>{Locked="launchSettings.json"}{Locked=".run.json"}</comment>
</data>
<data name="CommandOptionProjectDescription" xml:space="preserve">
<value>The path to the project file to run (defaults to the current directory if there is only one project).</value>
</data>
<data name="CommandOptionProjectHelpName" xml:space="preserve">
<value>PROJECT_PATH</value>
</data>
Expand Down
6 changes: 1 addition & 5 deletions src/Cli/dotnet/Commands/Run/RunCommandParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ internal static class RunCommandParser

public static readonly Option<string> RuntimeOption = CommonOptions.RuntimeOption(CliCommandStrings.RunRuntimeOptionDescription);

public static readonly Option<string> ProjectOption = new("--project")
{
Description = CliCommandStrings.CommandOptionProjectDescription,
HelpName = CliCommandStrings.CommandOptionProjectHelpName
};
public static readonly Option<string> ProjectOption = CommonOptions.ProjectOption(CliCommandStrings.VerbRun);

public static readonly Option<string> FileOption = new("--file")
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,9 @@ namespace Microsoft.DotNet.Cli.Commands.Test;

internal static class MicrosoftTestingPlatformOptions
{
public static readonly Option<string> ProjectOption = new("--project")
{
Description = CliCommandStrings.CmdProjectDescription,
HelpName = CliCommandStrings.CmdProjectPathName,
Arity = ArgumentArity.ExactlyOne
};
public static readonly Option<string> ProjectOption = CommonOptions.ProjectOption(CliCommandStrings.VerbTest);

public static readonly Option<string> SolutionOption = new("--solution")
{
Description = CliCommandStrings.CmdSolutionDescription,
HelpName = CliCommandStrings.CmdSolutionPathName,
Arity = ArgumentArity.ExactlyOne
};
public static readonly Option<string> SolutionOption = CommonOptions.SolutionOption(CliCommandStrings.VerbTest);

public static readonly Option<string> TestModulesFilterOption = new("--test-modules")
{
Expand Down
31 changes: 18 additions & 13 deletions src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 18 additions & 13 deletions src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 18 additions & 13 deletions src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading