Skip to content
Open
Show file tree
Hide file tree
Changes from 7 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
21 changes: 16 additions & 5 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 @@ -550,7 +550,7 @@ This is equivalent to deleting project.assets.json.</value>
<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>
<value>Defines the path of the project file to run. 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>
</data>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot This resource is unused now? It can be deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in commit cecdc27. Deleted both CmdProjectDescription and CommandOptionProjectDescription resources as they are no longer used after switching to the parameterized CmdProjectDescriptionFormat.

<data name="CmdProjectPathName" xml:space="preserve">
<value>PROJECT_PATH</value>
Expand Down Expand Up @@ -593,12 +593,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
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
27 changes: 21 additions & 6 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.

27 changes: 21 additions & 6 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.

27 changes: 21 additions & 6 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.

27 changes: 21 additions & 6 deletions src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf

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

Loading
Loading