Skip to content

Commit f43920b

Browse files
Youssef1313Copilot
andauthored
Update --project/--solution descriptions for dotnet test (MTP) (#51371)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
1 parent 1ad7560 commit f43920b

21 files changed

+339
-153
lines changed

src/Cli/dotnet/Commands/CliCommandStrings.resx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,9 @@ This is equivalent to deleting project.assets.json.</value>
549549
<data name="CmdPrereleaseDescription" xml:space="preserve">
550550
<value>Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.</value>
551551
</data>
552-
<data name="CmdProjectDescription" xml:space="preserve">
553-
<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>
552+
<data name="CmdProjectDescriptionFormat" xml:space="preserve">
553+
<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>
554+
<comment>{0} is the verb (e.g., "test", "run")</comment>
554555
</data>
555556
<data name="CmdProjectPathName" xml:space="preserve">
556557
<value>PROJECT_PATH</value>
@@ -594,11 +595,17 @@ If not specified the file will be generated inside the default 'TestResults' dir
594595
<value>SETTINGS_FILE</value>
595596
</data>
596597
<data name="CmdSolutionDescription" xml:space="preserve">
597-
<value>Defines the path of the solution file to run. If not specified, it defaults to the current directory.</value>
598+
<value>Defines the path of the solution file to test. 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>
598599
</data>
599600
<data name="CmdSolutionPathName" xml:space="preserve">
600601
<value>SOLUTION_PATH</value>
601602
</data>
603+
<data name="VerbRun" xml:space="preserve">
604+
<value>run</value>
605+
</data>
606+
<data name="VerbTest" xml:space="preserve">
607+
<value>test</value>
608+
</data>
602609
<data name="CmdSourceOption" xml:space="preserve">
603610
<value>SOURCE</value>
604611
</data>
@@ -704,9 +711,6 @@ See https://aka.ms/dotnet-test/mtp for more information.</value>
704711
<value>Do not attempt to use launchSettings.json or [app].run.json to configure the application.</value>
705712
<comment>{Locked="launchSettings.json"}{Locked=".run.json"}</comment>
706713
</data>
707-
<data name="CommandOptionProjectDescription" xml:space="preserve">
708-
<value>The path to the project file to run (defaults to the current directory if there is only one project).</value>
709-
</data>
710714
<data name="CommandOptionProjectHelpName" xml:space="preserve">
711715
<value>PROJECT_PATH</value>
712716
</data>

src/Cli/dotnet/Commands/Run/RunCommandParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal static class RunCommandParser
1919

2020
public static readonly Option<string> ProjectOption = new("--project")
2121
{
22-
Description = CliCommandStrings.CommandOptionProjectDescription,
22+
Description = string.Format(CliCommandStrings.CmdProjectDescriptionFormat, CliCommandStrings.VerbRun),
2323
HelpName = CliCommandStrings.CommandOptionProjectHelpName
2424
};
2525

src/Cli/dotnet/Commands/Test/MTP/MicrosoftTestingPlatformOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal static class MicrosoftTestingPlatformOptions
99
{
1010
public static readonly Option<string> ProjectOption = new("--project")
1111
{
12-
Description = CliCommandStrings.CmdProjectDescription,
12+
Description = string.Format(CliCommandStrings.CmdProjectDescriptionFormat, CliCommandStrings.VerbTest),
1313
HelpName = CliCommandStrings.CmdProjectPathName,
1414
Arity = ArgumentArity.ExactlyOne
1515
};

src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)