From b68d460e9b0027dd881567a8302ee0f97bde60ef Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 29 Sep 2025 14:16:33 +0000
Subject: [PATCH 01/19] Initial plan
From 4c9c63e45d28bd50089a907bd1bc9834847592b6 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 29 Sep 2025 14:33:23 +0000
Subject: [PATCH 02/19] Fix dotnet test MTP option descriptions to use 'test'
instead of 'run'
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
---
.../ProjectToolsCommandResolver.cs | 2 +-
src/Cli/dotnet/Commands/Build/BuildCommand.cs | 2 +-
src/Cli/dotnet/Commands/Clean/CleanCommand.cs | 4 ++--
.../dotnet/Commands/CliCommandStrings.resx | 6 ++++++
.../dotnet/Commands/Format/FormatCommand.cs | 2 +-
.../Hidden/Complete/CompleteCommand.cs | 2 +-
.../InternalReportInstallSuccessCommand.cs | 2 +-
.../dotnet/Commands/MSBuild/MSBuildCommand.cs | 4 ++--
src/Cli/dotnet/Commands/Pack/PackCommand.cs | 6 +++---
.../Package/List/PackageListCommand.cs | 4 ++--
.../Package/Search/PackageSearchCommand.cs | 2 +-
.../dotnet/Commands/Publish/PublishCommand.cs | 2 +-
.../dotnet/Commands/Restore/RestoreCommand.cs | 2 +-
.../Commands/Restore/RestoringCommand.cs | 8 ++++----
.../LaunchSettings/LaunchSettingsManager.cs | 4 ++--
src/Cli/dotnet/Commands/Run/RunTelemetry.cs | 2 +-
.../Migrate/SolutionMigrateCommand.cs | 4 +++-
.../Solution/Remove/SolutionRemoveCommand.cs | 2 +-
src/Cli/dotnet/Commands/Store/StoreCommand.cs | 2 +-
.../MTP/MicrosoftTestingPlatformOptions.cs | 4 ++--
.../Test/MTP/Terminal/TerminalTestReporter.cs | 4 ++--
.../Test/MTP/TestApplicationActionQueue.cs | 2 +-
.../Commands/Test/VSTest/TestCommand.cs | 9 +++++----
.../Test/VSTest/VSTestForwardingApp.cs | 2 +-
.../ToolInstallGlobalOrToolPathCommand.cs | 20 +++++++++----------
.../Tool/Install/ToolInstallLocalCommand.cs | 2 +-
.../Commands/Tool/List/ToolListJsonHelper.cs | 12 +++++------
.../Tool/Restore/ToolPackageRestorer.cs | 2 +-
.../ToolUninstallGlobalOrToolPathCommand.cs | 2 +-
.../ToolUpdateGlobalOrToolPathCommand.cs | 6 +++---
.../History/WorkloadHistoryCommand.cs | 4 ++--
.../Restore/WorkloadRestoreCommand.cs | 2 +-
.../Commands/Workload/WorkloadCommandBase.cs | 2 +-
.../Workload/WorkloadCommandParser.cs | 2 +-
.../Commands/xlf/CliCommandStrings.cs.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.de.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.es.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.fr.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.it.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.ja.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.ko.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.pl.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.pt-BR.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.ru.xlf | 10 ++++++++++
.../Commands/xlf/CliCommandStrings.tr.xlf | 10 ++++++++++
.../xlf/CliCommandStrings.zh-Hans.xlf | 10 ++++++++++
.../xlf/CliCommandStrings.zh-Hant.xlf | 10 ++++++++++
src/Cli/dotnet/CommonOptions.cs | 2 +-
src/Cli/dotnet/DotNetCommandFactory.cs | 2 +-
.../Extensions/CommonOptionsExtensions.cs | 2 +-
.../INuGetPackageDownloader.cs | 2 +-
.../NuGetPackageDownloader.cs | 4 ++--
.../dotnet/ReleasePropertyProjectLocator.cs | 3 ++-
src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs | 4 ++--
.../Telemetry/EnvironmentDetectionRule.cs | 8 ++++----
.../Telemetry/ILLMEnvironmentDetector.cs | 2 +-
.../LLMEnvironmentDetectorForTelemetry.cs | 2 +-
src/Cli/dotnet/Telemetry/Telemetry.cs | 4 ++--
.../dotnet/ToolPackage/ToolConfiguration.cs | 2 +-
59 files changed, 222 insertions(+), 82 deletions(-)
diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs
index 2f8bb7badd98..be3d9294b176 100644
--- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs
+++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs
@@ -385,7 +385,7 @@ internal void GenerateDepsJsonFile(
string? stdOut;
string? stdErr;
- var msbuildArgs = MSBuildArgs.AnalyzeMSBuildArguments([..args], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, BuildCommandParser.TargetOption, BuildCommandParser.VerbosityOption);
+ var msbuildArgs = MSBuildArgs.AnalyzeMSBuildArguments([.. args], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, BuildCommandParser.TargetOption, BuildCommandParser.VerbosityOption);
var forwardingAppWithoutLogging = new MSBuildForwardingAppWithoutLogging(msbuildArgs, msBuildExePath);
if (forwardingAppWithoutLogging.ExecuteMSBuildOutOfProc)
{
diff --git a/src/Cli/dotnet/Commands/Build/BuildCommand.cs b/src/Cli/dotnet/Commands/Build/BuildCommand.cs
index 871ead794e84..4d8e425dace9 100644
--- a/src/Cli/dotnet/Commands/Build/BuildCommand.cs
+++ b/src/Cli/dotnet/Commands/Build/BuildCommand.cs
@@ -12,7 +12,7 @@ public static class BuildCommand
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "build", ..args]);
+ var parseResult = Parser.Parse(["dotnet", "build", .. args]);
return FromParseResult(parseResult, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Clean/CleanCommand.cs b/src/Cli/dotnet/Commands/Clean/CleanCommand.cs
index 1290b8b68cfd..7c5516b05dd3 100644
--- a/src/Cli/dotnet/Commands/Clean/CleanCommand.cs
+++ b/src/Cli/dotnet/Commands/Clean/CleanCommand.cs
@@ -13,7 +13,7 @@ public class CleanCommand(MSBuildArgs msbuildArgs, string? msbuildPath = null) :
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "clean", ..args]);
+ var result = Parser.Parse(["dotnet", "clean", .. args]);
return FromParseResult(result, msbuildPath);
}
@@ -33,7 +33,7 @@ public static CommandBase FromParseResult(ParseResult result, string? msbuildPat
NoWriteBuildMarkers = true,
},
static (msbuildArgs, msbuildPath) => new CleanCommand(msbuildArgs, msbuildPath),
- [ CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, CleanCommandParser.TargetOption, CleanCommandParser.VerbosityOption ],
+ [CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, CleanCommandParser.TargetOption, CleanCommandParser.VerbosityOption],
result,
msbuildPath
);
diff --git a/src/Cli/dotnet/Commands/CliCommandStrings.resx b/src/Cli/dotnet/Commands/CliCommandStrings.resx
index 495d18fbb4c1..730bd06a1518 100644
--- a/src/Cli/dotnet/Commands/CliCommandStrings.resx
+++ b/src/Cli/dotnet/Commands/CliCommandStrings.resx
@@ -599,6 +599,12 @@ If not specified the file will be generated inside the default 'TestResults' dir
SOLUTION_PATH
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
SOURCE
diff --git a/src/Cli/dotnet/Commands/Format/FormatCommand.cs b/src/Cli/dotnet/Commands/Format/FormatCommand.cs
index 9ee9296172fa..d6629af67720 100644
--- a/src/Cli/dotnet/Commands/Format/FormatCommand.cs
+++ b/src/Cli/dotnet/Commands/Format/FormatCommand.cs
@@ -13,7 +13,7 @@ public class FormatCommand(IEnumerable argsToForward) : FormatForwarding
{
public static FormatCommand FromArgs(string[] args)
{
- var result = Parser.Parse(["dotnet", "format", ..args]);
+ var result = Parser.Parse(["dotnet", "format", .. args]);
return FromParseResult(result);
}
diff --git a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs
index 5cdf66cfca6e..33904941b817 100644
--- a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs
+++ b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs
@@ -19,7 +19,7 @@ public static int Run(ParseResult parseResult)
public static int RunWithReporter(string[] args, IReporter reporter)
{
- var result = Parser.Parse(["dotnet", "complete", ..args]);
+ var result = Parser.Parse(["dotnet", "complete", .. args]);
return RunWithReporter(result, reporter);
}
diff --git a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs
index 744289023948..bed479d01816 100644
--- a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs
+++ b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs
@@ -25,7 +25,7 @@ public static int Run(ParseResult parseResult)
public static void ProcessInputAndSendTelemetry(string[] args, ITelemetry telemetry)
{
- var result = Parser.Parse(["dotnet", "internal-reportinstallsuccess", ..args]);
+ var result = Parser.Parse(["dotnet", "internal-reportinstallsuccess", .. args]);
ProcessInputAndSendTelemetry(result, telemetry);
}
diff --git a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs
index cf0b7e06c660..5deae21cb609 100644
--- a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs
+++ b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs
@@ -10,11 +10,11 @@ namespace Microsoft.DotNet.Cli.Commands.MSBuild;
public class MSBuildCommand(
IEnumerable msbuildArgs,
string? msbuildPath = null
-) : MSBuildForwardingApp(MSBuildArgs.AnalyzeMSBuildArguments([..msbuildArgs], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, MSBuildCommandParser.TargetOption, CommonOptions.VerbosityOption()), msbuildPath, includeLogo: true)
+) : MSBuildForwardingApp(MSBuildArgs.AnalyzeMSBuildArguments([.. msbuildArgs], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, MSBuildCommandParser.TargetOption, CommonOptions.VerbosityOption()), msbuildPath, includeLogo: true)
{
public static MSBuildCommand FromArgs(string[] args, string? msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "msbuild", ..args]);
+ var result = Parser.Parse(["dotnet", "msbuild", .. args]);
return FromParseResult(result, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Pack/PackCommand.cs b/src/Cli/dotnet/Commands/Pack/PackCommand.cs
index 1e88f22688f5..3d574c30bf18 100644
--- a/src/Cli/dotnet/Commands/Pack/PackCommand.cs
+++ b/src/Cli/dotnet/Commands/Pack/PackCommand.cs
@@ -24,7 +24,7 @@ public class PackCommand(
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "pack", ..args]);
+ var parseResult = Parser.Parse(["dotnet", "pack", .. args]);
return FromParseResult(parseResult, msbuildPath);
}
@@ -92,14 +92,14 @@ public static int RunPackCommand(ParseResult parseResult)
if (args.Count != 1)
{
- Console.Error.WriteLine(CliStrings.PackCmd_OneNuspecAllowed);
+ Console.Error.WriteLine(CliStrings.PackCmd_OneNuspecAllowed);
return 1;
}
var nuspecPath = args[0];
var packArgs = new PackArgs()
- {
+ {
Logger = new NuGetConsoleLogger(),
Exclude = new List(),
OutputDirectory = parseResult.GetValue(PackCommandParser.OutputOption),
diff --git a/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs b/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs
index 27520377cad2..7e340ac81fa7 100644
--- a/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs
+++ b/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs
@@ -4,12 +4,12 @@
#nullable disable
using System.CommandLine;
+using System.Globalization;
using Microsoft.DotNet.Cli.Commands.Hidden.List;
+using Microsoft.DotNet.Cli.Commands.MSBuild;
using Microsoft.DotNet.Cli.Commands.NuGet;
using Microsoft.DotNet.Cli.Extensions;
using Microsoft.DotNet.Cli.Utils;
-using System.Globalization;
-using Microsoft.DotNet.Cli.Commands.MSBuild;
namespace Microsoft.DotNet.Cli.Commands.Package.List;
diff --git a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs
index 4317f96329be..8bbfd5261cdc 100644
--- a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs
+++ b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs
@@ -3,9 +3,9 @@
#nullable disable
+using System.CommandLine;
using Microsoft.DotNet.Cli.Commands.NuGet;
using Microsoft.DotNet.Cli.Extensions;
-using System.CommandLine;
namespace Microsoft.DotNet.Cli.Commands.Package.Search;
diff --git a/src/Cli/dotnet/Commands/Publish/PublishCommand.cs b/src/Cli/dotnet/Commands/Publish/PublishCommand.cs
index 45dc32c84300..dfafac3d4807 100644
--- a/src/Cli/dotnet/Commands/Publish/PublishCommand.cs
+++ b/src/Cli/dotnet/Commands/Publish/PublishCommand.cs
@@ -21,7 +21,7 @@ private PublishCommand(
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "publish", ..args]);
+ var parseResult = Parser.Parse(["dotnet", "publish", .. args]);
return FromParseResult(parseResult);
}
diff --git a/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs b/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs
index 6eb650b0e261..bd685b2b6ec2 100644
--- a/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs
+++ b/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs
@@ -13,7 +13,7 @@ public static class RestoreCommand
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "restore", ..args]);
+ var result = Parser.Parse(["dotnet", "restore", .. args]);
return FromParseResult(result, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs b/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs
index dd2e961c1524..ea92c35ab063 100644
--- a/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs
+++ b/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs
@@ -37,7 +37,7 @@ public RestoringCommand(
string? msbuildPath = null,
string? userProfileDir = null,
bool? advertiseWorkloadUpdates = null)
- : base(GetCommandArguments(msbuildArgs, noRestore), msbuildPath)
+ : base(GetCommandArguments(msbuildArgs, noRestore), msbuildPath)
{
userProfileDir = CliFolderPathCalculator.DotnetUserProfileFolderPath;
Task.Run(() => WorkloadManifestUpdater.BackgroundUpdateAdvertisingManifestsAsync(userProfileDir));
@@ -122,13 +122,13 @@ private static MSBuildArgs GetCommandArguments(
ReadOnlyDictionary restoreProperties =
msbuildArgs.GlobalProperties?
.Where(kvp => !IsPropertyExcludedFromRestore(kvp.Key))?
- .ToDictionary(kvp => kvp.Key, kvp => kvp.Value, StringComparer.OrdinalIgnoreCase) is { } filteredList ? new(filteredList): ReadOnlyDictionary.Empty;
+ .ToDictionary(kvp => kvp.Key, kvp => kvp.Value, StringComparer.OrdinalIgnoreCase) is { } filteredList ? new(filteredList) : ReadOnlyDictionary.Empty;
var restoreMSBuildArgs =
MSBuildArgs.FromProperties(RestoreOptimizationProperties)
.CloneWithAdditionalTargets("Restore")
.CloneWithExplicitArgs([.. newArgumentsToAdd, .. existingArgumentsToForward])
.CloneWithAdditionalProperties(restoreProperties);
- if (msbuildArgs.Verbosity is {} verbosity)
+ if (msbuildArgs.Verbosity is { } verbosity)
{
restoreMSBuildArgs = restoreMSBuildArgs.CloneWithVerbosity(verbosity);
}
@@ -175,7 +175,7 @@ private static bool HasPropertyToExcludeFromRestore(MSBuildArgs msbuildArgs)
private static readonly List FlagsThatTriggerSilentSeparateRestore = [.. ComputeFlags(FlagsThatTriggerSilentRestore)];
- private static readonly List PropertiesToExcludeFromSeparateRestore = [ .. PropertiesToExcludeFromRestore ];
+ private static readonly List PropertiesToExcludeFromSeparateRestore = [.. PropertiesToExcludeFromRestore];
///
/// We investigate the arguments we're about to send to a separate restore call and filter out
diff --git a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs
index a1776027476d..3e4c7b2bd53e 100644
--- a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs
+++ b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs
@@ -84,7 +84,7 @@ public static LaunchSettingsApplyResult TryApplyLaunchSettings(string launchSett
{
if (prop.Value.TryGetProperty(CommandNameKey, out var commandNameElement) && commandNameElement.ValueKind == JsonValueKind.String)
{
- if (commandNameElement.GetString() is { } commandNameElementKey && _providers.ContainsKey(commandNameElementKey))
+ if (commandNameElement.GetString() is { } commandNameElementKey && _providers.ContainsKey(commandNameElementKey))
{
profileObject = prop.Value;
break;
@@ -120,7 +120,7 @@ public static LaunchSettingsApplyResult TryApplyLaunchSettings(string launchSett
}
}
- private static bool TryLocateHandler(string? commandName, [NotNullWhen(true)]out ILaunchSettingsProvider? provider)
+ private static bool TryLocateHandler(string? commandName, [NotNullWhen(true)] out ILaunchSettingsProvider? provider)
{
if (commandName == null)
{
diff --git a/src/Cli/dotnet/Commands/Run/RunTelemetry.cs b/src/Cli/dotnet/Commands/Run/RunTelemetry.cs
index 35e13b2d3fd2..47fae9a27f85 100644
--- a/src/Cli/dotnet/Commands/Run/RunTelemetry.cs
+++ b/src/Cli/dotnet/Commands/Run/RunTelemetry.cs
@@ -234,4 +234,4 @@ private static bool IsDefaultProfile(string? profileName)
// The default profile name at this point is "(Default)"
return profileName.Equals("(Default)", StringComparison.OrdinalIgnoreCase);
}
-}
\ No newline at end of file
+}
diff --git a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs
index 074431c8981b..8c445a02d87f 100644
--- a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs
+++ b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs
@@ -29,7 +29,9 @@ public override int Execute()
{
ConvertToSlnxAsync(slnFileFullPath, slnxFileFullPath, CancellationToken.None).Wait();
return 0;
- } catch (Exception ex) {
+ }
+ catch (Exception ex)
+ {
throw new GracefulException(ex.Message, ex);
}
}
diff --git a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs
index 36030bd22621..a0e624ef5a4a 100644
--- a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs
+++ b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs
@@ -124,7 +124,7 @@ private static async Task RemoveProjectsAsync(string solutionFileFullPath, IEnum
{
solution.RemoveFolder(folder);
// After removal, adjust index and continue to avoid skipping folders after removal
- i--;
+ i--;
}
}
diff --git a/src/Cli/dotnet/Commands/Store/StoreCommand.cs b/src/Cli/dotnet/Commands/Store/StoreCommand.cs
index 0c7846c513e2..f02b52b641dc 100644
--- a/src/Cli/dotnet/Commands/Store/StoreCommand.cs
+++ b/src/Cli/dotnet/Commands/Store/StoreCommand.cs
@@ -19,7 +19,7 @@ private StoreCommand(IEnumerable msbuildArgs, string msbuildPath = null)
public static StoreCommand FromArgs(string[] args, string msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "store", ..args]);
+ var result = Parser.Parse(["dotnet", "store", .. args]);
return FromParseResult(result, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Test/MTP/MicrosoftTestingPlatformOptions.cs b/src/Cli/dotnet/Commands/Test/MTP/MicrosoftTestingPlatformOptions.cs
index bf6c1eaa071b..996b6e562b0d 100644
--- a/src/Cli/dotnet/Commands/Test/MTP/MicrosoftTestingPlatformOptions.cs
+++ b/src/Cli/dotnet/Commands/Test/MTP/MicrosoftTestingPlatformOptions.cs
@@ -9,14 +9,14 @@ internal static class MicrosoftTestingPlatformOptions
{
public static readonly Option ProjectOption = new("--project")
{
- Description = CliCommandStrings.CmdProjectDescription,
+ Description = CliCommandStrings.TestCmdProjectDescription,
HelpName = CliCommandStrings.CmdProjectPathName,
Arity = ArgumentArity.ExactlyOne
};
public static readonly Option SolutionOption = new("--solution")
{
- Description = CliCommandStrings.CmdSolutionDescription,
+ Description = CliCommandStrings.TestCmdSolutionDescription,
HelpName = CliCommandStrings.CmdSolutionPathName,
Arity = ArgumentArity.ExactlyOne
};
diff --git a/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs b/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs
index 22929d8dfb7f..59411986c9f4 100644
--- a/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs
+++ b/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs
@@ -1,12 +1,12 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Concurrent;
-using Microsoft.TemplateEngine.Cli.Help;
using System.Globalization;
using System.Text.RegularExpressions;
using Microsoft.CodeAnalysis;
-using Microsoft.Testing.Platform.OutputDevice.Terminal;
using Microsoft.DotNet.Cli.Commands.Test.IPC.Models;
+using Microsoft.TemplateEngine.Cli.Help;
+using Microsoft.Testing.Platform.OutputDevice.Terminal;
namespace Microsoft.DotNet.Cli.Commands.Test.Terminal;
diff --git a/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs b/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs
index 41ee319317e7..4496703ace28 100644
--- a/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs
+++ b/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs
@@ -78,7 +78,7 @@ private async Task Read(BuildOptions buildOptions, TestOptions testOptions, Term
{
result = ExitCode.GenericFailure;
}
-
+
lock (_lock)
{
if (_aggregateExitCode is null)
diff --git a/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs b/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs
index a17cc0031e13..9ade2f4d0069 100644
--- a/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs
+++ b/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs
@@ -153,7 +153,7 @@ private static int ForwardToVSTestConsole(ParseResult parseResult, string[] args
public static TestCommand FromArgs(string[] args, string? testSessionCorrelationId = null, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "test", ..args]);
+ var parseResult = Parser.Parse(["dotnet", "test", .. args]);
// settings parameters are after -- (including --), these should not be considered by the parser
string[] settings = [.. args.SkipWhile(a => a != "--")];
@@ -239,9 +239,10 @@ private static TestCommand FromParseResult(ParseResult result, string[] settings
}
}
-
+
Dictionary variables = VSTestForwardingApp.GetVSTestRootVariables();
- foreach (var (rootVariableName, rootValue) in variables) {
+ foreach (var (rootVariableName, rootValue) in variables)
+ {
testCommand.EnvironmentVariable(rootVariableName, rootValue);
VSTestTrace.SafeWriteTrace(() => $"Root variable set {rootVariableName}:{rootValue}");
}
@@ -303,7 +304,7 @@ private static bool ContainsBuiltTestSources(string[] args)
if (arg.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) || arg.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
{
var previousArg = i > 0 ? args[i - 1] : null;
- if (previousArg != null && CommonOptions.PropertiesOption.Aliases.Contains(previousArg))
+ if (previousArg != null && CommonOptions.PropertiesOption.Aliases.Contains(previousArg))
{
return false;
}
diff --git a/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs b/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs
index fb81e15466f9..26a021485c97 100644
--- a/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs
+++ b/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs
@@ -20,7 +20,7 @@ public VSTestForwardingApp(IEnumerable argsToForward)
WithEnvironmentVariable(rootVariableName, rootValue);
VSTestTrace.SafeWriteTrace(() => $"Root variable set {rootVariableName}:{rootValue}");
}
-
+
VSTestTrace.SafeWriteTrace(() => $"Forwarding to '{GetVSTestExePath()}' with args \"{argsToForward?.Aggregate((a, b) => $"{a} | {b}")}\"");
}
diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs
index c465e20372e5..431b92f2c654 100644
--- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs
@@ -5,20 +5,20 @@
using System.CommandLine;
using System.Transactions;
+using Microsoft.DotNet.Cli.Commands.Tool.Common;
+using Microsoft.DotNet.Cli.Commands.Tool.List;
+using Microsoft.DotNet.Cli.Commands.Tool.Uninstall;
+using Microsoft.DotNet.Cli.Commands.Tool.Update;
+using Microsoft.DotNet.Cli.Extensions;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
+using Microsoft.DotNet.Cli.ShellShim;
using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.Utils;
+using Microsoft.DotNet.Cli.Utils.Extensions;
using Microsoft.Extensions.EnvironmentAbstractions;
using NuGet.Common;
using NuGet.Frameworks;
using NuGet.Versioning;
-using Microsoft.DotNet.Cli.Utils.Extensions;
-using Microsoft.DotNet.Cli.Extensions;
-using Microsoft.DotNet.Cli.ShellShim;
-using Microsoft.DotNet.Cli.Commands.Tool.Update;
-using Microsoft.DotNet.Cli.Commands.Tool.Common;
-using Microsoft.DotNet.Cli.Commands.Tool.Uninstall;
-using Microsoft.DotNet.Cli.Commands.Tool.List;
namespace Microsoft.DotNet.Cli.Commands.Tool.Install;
@@ -187,7 +187,7 @@ private int ExecuteInstallCommand(PackageId packageId)
{
_reporter.WriteLine(string.Format(CliCommandStrings.ToolAlreadyInstalled, oldPackageNullable.Id, oldPackageNullable.Version.ToNormalizedString()).Green());
return 0;
- }
+ }
}
TransactionalAction.Run(() =>
@@ -318,7 +318,7 @@ private static void RunWithHandlingUninstallError(Action uninstallAction, Packag
{
try
{
- uninstallAction();
+ uninstallAction();
}
catch (Exception ex)
when (ToolUninstallCommandLowLevelErrorConverter.ShouldConvertToUserFacingError(ex))
@@ -396,7 +396,7 @@ private void PrintSuccessMessage(IToolPackage oldPackage, IToolPackage newInstal
{
_reporter.WriteLine(
string.Format(
-
+
newInstalledPackage.Version.IsPrerelease ?
CliCommandStrings.UpdateSucceededPreVersionNoChange : CliCommandStrings.UpdateSucceededStableVersionNoChange,
newInstalledPackage.Id, newInstalledPackage.Version).Green());
diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs
index 87fb7860f992..e0bf8ccd3247 100644
--- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs
@@ -83,7 +83,7 @@ public override int Execute()
}
else
{
- return ExecuteInstallCommand((PackageId) _packageId);
+ return ExecuteInstallCommand((PackageId)_packageId);
}
}
diff --git a/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs b/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs
index 2ff9552ceeca..914f19efe192 100644
--- a/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs
+++ b/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs
@@ -10,12 +10,12 @@ namespace Microsoft.DotNet.Cli.Commands.Tool.List;
internal sealed class VersionedDataContract
{
- ///
- /// The version of the JSON format for dotnet tool list.
- ///
+ ///
+ /// The version of the JSON format for dotnet tool list.
+ ///
[JsonPropertyName("version")]
public int Version { get; init; } = 1;
-
+
[JsonPropertyName("data")]
public required TContract Data { get; init; }
}
@@ -24,10 +24,10 @@ internal class ToolListJsonContract
{
[JsonPropertyName("packageId")]
public required string PackageId { get; init; }
-
+
[JsonPropertyName("version")]
public required string Version { get; init; }
-
+
[JsonPropertyName("commands")]
public required string[] Commands { get; init; }
}
diff --git a/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs b/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs
index b1c3b3f4ed52..1377a97cb006 100644
--- a/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs
+++ b/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs
@@ -109,7 +109,7 @@ private static bool ManifestCommandMatchesActualInPackage(
IReadOnlyList toolPackageCommands)
{
ToolCommandName[] commandsFromPackage = [.. toolPackageCommands.Select(t => t.Name)];
-return !commandsFromManifest.Any(cmd => !commandsFromPackage.Contains(cmd)) && !commandsFromPackage.Any(cmd => !commandsFromManifest.Contains(cmd));
+ return !commandsFromManifest.Any(cmd => !commandsFromPackage.Contains(cmd)) && !commandsFromPackage.Any(cmd => !commandsFromManifest.Contains(cmd));
}
public bool PackageHasBeenRestored(
diff --git a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs
index 58db9f55cc04..6db95e91941a 100644
--- a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs
@@ -73,7 +73,7 @@ public override int Execute()
TransactionalAction.Run(() =>
{
shellShimRepository.RemoveShim(package.Command);
-
+
toolPackageUninstaller.Uninstall(package.PackageDirectory);
});
diff --git a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs
index 4c73cebd76f0..2d4c881bbc83 100644
--- a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs
@@ -4,12 +4,12 @@
#nullable disable
using System.CommandLine;
+using Microsoft.DotNet.Cli.Commands.Tool.Install;
+using Microsoft.DotNet.Cli.ShellShim;
+using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.Extensions.EnvironmentAbstractions;
-using Microsoft.DotNet.Cli.ToolPackage;
using CreateShellShimRepository = Microsoft.DotNet.Cli.Commands.Tool.Install.CreateShellShimRepository;
-using Microsoft.DotNet.Cli.ShellShim;
-using Microsoft.DotNet.Cli.Commands.Tool.Install;
namespace Microsoft.DotNet.Cli.Commands.Tool.Update;
diff --git a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs
index ceebc46404a9..cbb727effd59 100644
--- a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs
+++ b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs
@@ -4,11 +4,11 @@
#nullable disable
using System.CommandLine;
+using Microsoft.Deployment.DotNet.Releases;
+using Microsoft.DotNet.Cli.Commands.Workload.Install;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.NET.Sdk.WorkloadManifestReader;
-using Microsoft.Deployment.DotNet.Releases;
-using Microsoft.DotNet.Cli.Commands.Workload.Install;
namespace Microsoft.DotNet.Cli.Commands.Workload.History;
diff --git a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs
index 1dbc16110933..e1f64e74fb98 100644
--- a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs
+++ b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs
@@ -60,7 +60,7 @@ public override int Execute()
});
workloadInstaller.Shutdown();
-
+
return 0;
}
diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs b/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs
index 44b441349be3..83c3622afd18 100644
--- a/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs
+++ b/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs
@@ -96,7 +96,7 @@ public WorkloadCommandBase(
Verbosity = verbosityOptions == null
? parseResult.GetValue(CommonOptions.VerbosityOption(VerbosityOptions.normal))
- : parseResult.GetValue(verbosityOptions) ;
+ : parseResult.GetValue(verbosityOptions);
ILogger nugetLogger = Verbosity.IsDetailedOrDiagnostic() ? new NuGetConsoleLogger() : new NullLogger();
diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs b/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs
index 32a38bdd9af9..4910fa324c34 100644
--- a/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs
+++ b/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs
@@ -20,8 +20,8 @@
using Microsoft.DotNet.Cli.Utils;
using Microsoft.NET.Sdk.WorkloadManifestReader;
using Microsoft.TemplateEngine.Cli.Commands;
-using IReporter = Microsoft.DotNet.Cli.Utils.IReporter;
using Command = System.CommandLine.Command;
+using IReporter = Microsoft.DotNet.Cli.Utils.IReporter;
namespace Microsoft.DotNet.Cli.Commands.Workload;
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf
index 103346abd196..4f5d4386fa57 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf
@@ -3146,6 +3146,16 @@ Cílem projektu je více architektur. Pomocí parametru {0} určete, která arch
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.Zadání adresáře pro dotnet test by mělo být prostřednictvím --project nebo --solution.
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf
index b0152c1b2ddc..b352872f6a70 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf
@@ -3146,6 +3146,16 @@ Ihr Projekt verwendet mehrere Zielframeworks. Geben Sie über "{0}" an, welches
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.Die Angabe eines Verzeichnisses für „dotnet test“ sollte über „--project“ oder „--solution“ erfolgen.
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf
index 2a3a8fb5d834..0ced0d489f1b 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf
@@ -3146,6 +3146,16 @@ Su proyecto tiene como destino varias plataformas. Especifique la que quiere usa
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.La especificación de un directorio para 'dotnet test' debería ser a través de '--project' o '--solution'.
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf
index c3159e8182ce..f67e3583a87b 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf
@@ -3146,6 +3146,16 @@ Votre projet cible plusieurs frameworks. Spécifiez le framework à exécuter à
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.La spécification d’un répertoire pour « dotnet test » doit se faire via « --project » ou « --solution ».
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf
index dc7d41f3f845..1bd15a9c5d53 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf
@@ -3146,6 +3146,16 @@ Il progetto è destinato a più framework. Specificare il framework da eseguire
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.La specifica di una directory per 'dotnet test' deve avvenire tramite '--project' o '-solution'.
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf
index 7f103c9c4105..492739df038a 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf
@@ -3146,6 +3146,16 @@ Your project targets multiple frameworks. Specify which framework to run using '
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.'dotnet test' のディレクトリを指定するには、'--project' または '--solution' を使用する必要があります。
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf
index bc39df5fe54a..c750a063384f 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf
@@ -3146,6 +3146,16 @@ Your project targets multiple frameworks. Specify which framework to run using '
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.'dotnet test'에 대한 디렉터리를 지정하려면 '--project' 또는 '--solution'을 통해 지정해야 합니다.
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf
index 3e345a828e15..28183c93e437 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf
@@ -3146,6 +3146,16 @@ Projekt ma wiele platform docelowych. Określ platformę do uruchomienia przy u
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.Określenie katalogu dla elementu „dotnet test” powinno być za pośrednictwem polecenia „--project” lub „--solution”.
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf
index 86b8b6c89f48..54a9feb89920 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf
@@ -3146,6 +3146,16 @@ Ele tem diversas estruturas como destino. Especifique que estrutura executar usa
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.Especificar um diretório para "dotnet test" deve ser por meio de "--project" ou "--solution".
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf
index 8831a34832c0..782a4b1a2124 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf
@@ -3146,6 +3146,16 @@ Your project targets multiple frameworks. Specify which framework to run using '
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.Указывать каталог для "dotnet test" следует через параметры "--project" или "--solution".
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf
index aebfc0f66817..837cb15656e8 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf
@@ -3146,6 +3146,16 @@ Projeniz birden fazla Framework'ü hedefliyor. '{0}' kullanarak hangi Framework'
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.'dotnet test' için bir dizin belirtme '--project' veya '--solution' ile yapılmalıdır.
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf
index 19e35a25e314..bc0b62116894 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf
@@ -3146,6 +3146,16 @@ Your project targets multiple frameworks. Specify which framework to run using '
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.应通过 ‘--project’ 或 ‘--solution’ 指定 ‘dotnet test’ 的目录。
diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf
index 10e1068997b1..482a6a5697ec 100644
--- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf
+++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf
@@ -3146,6 +3146,16 @@ Your project targets multiple frameworks. Specify which framework to run using '
OUTPUT_DIR
+
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the project file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+
+
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+ Defines the path of the solution file to test (folder name or full path). If not specified, it defaults to the current directory.
+
+ Specifying a directory for 'dotnet test' should be via '--project' or '--solution'.指定 'dotnet test' 的目錄應透過 '--project' 或 '--solution'。
diff --git a/src/Cli/dotnet/CommonOptions.cs b/src/Cli/dotnet/CommonOptions.cs
index aa1730a23525..2b0c376c906f 100644
--- a/src/Cli/dotnet/CommonOptions.cs
+++ b/src/Cli/dotnet/CommonOptions.cs
@@ -348,7 +348,7 @@ public static ForwardedOption InteractiveOption(bool acceptArgument = fals
};
public static readonly Option> EnvOption = CreateEnvOption(CliStrings.CmdEnvironmentVariableDescription);
-
+
public static readonly Option> TestEnvOption = CreateEnvOption(CliStrings.CmdTestEnvironmentVariableDescription);
private static IReadOnlyDictionary ParseEnvironmentVariables(ArgumentResult argumentResult)
diff --git a/src/Cli/dotnet/DotNetCommandFactory.cs b/src/Cli/dotnet/DotNetCommandFactory.cs
index ea5eb912e8f6..dcb70b05e6c9 100644
--- a/src/Cli/dotnet/DotNetCommandFactory.cs
+++ b/src/Cli/dotnet/DotNetCommandFactory.cs
@@ -38,7 +38,7 @@ private static bool TryGetBuiltInCommand(string commandName, out Func Parser.Invoke([commandName, ..args]);
+ commandFunc = (args) => Parser.Invoke([commandName, .. args]);
return true;
}
commandFunc = null;
diff --git a/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs b/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs
index 9254bbd73b77..a225056f02f8 100644
--- a/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs
+++ b/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs
@@ -4,8 +4,8 @@
#nullable disable
using Microsoft.Build.Framework;
-using Microsoft.Extensions.Logging;
using Microsoft.DotNet.Cli.Utils;
+using Microsoft.Extensions.Logging;
namespace Microsoft.DotNet.Cli.Extensions;
diff --git a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs
index a5e54ba06bb9..0c606c61dbf7 100644
--- a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs
+++ b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs
@@ -43,4 +43,4 @@ Task GetBestPackageVersionAsync(PackageId packageId,
Task<(NuGetVersion version, PackageSource source)> GetBestPackageVersionAndSourceAsync(PackageId packageId,
VersionRange versionRange,
PackageSourceLocation packageSourceLocation = null);
-}
+}
diff --git a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
index a311e88c646d..a0ce16fe6d0b 100644
--- a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
+++ b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
@@ -75,7 +75,7 @@ public NuGetPackageDownloader(
_retryTimer = timer;
_sourceRepositories = new();
// If windows or env variable is set, verify signatures
- _verifySignatures = verifySignatures && (OperatingSystem.IsWindows() ? true
+ _verifySignatures = verifySignatures && (OperatingSystem.IsWindows() ? true
: bool.TryParse(Environment.GetEnvironmentVariable(NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification), out var shouldVerifySignature) ? shouldVerifySignature : OperatingSystem.IsLinux());
_cacheSettings = new SourceCacheContext
@@ -122,7 +122,7 @@ public async Task DownloadPackageAsync(PackageId packageId,
throw new ArgumentException($"Package download folder must be specified either via {nameof(NuGetPackageDownloader)} constructor or via {nameof(downloadFolder)} method argument.");
}
var pathResolver = new VersionFolderPathResolver(resolvedDownloadFolder);
-
+
string nupkgPath = pathResolver.GetPackageFilePath(packageId.ToString(), resolvedPackageVersion);
Directory.CreateDirectory(Path.GetDirectoryName(nupkgPath));
diff --git a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs
index e85fb9878d4c..7c03df034464 100644
--- a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs
+++ b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs
@@ -230,7 +230,8 @@ DependentCommandOptions commandOptions
{
return projectData;
}
- };
+ }
+ ;
return null;
}
diff --git a/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs b/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs
index 015af6723629..7960deb22cc7 100644
--- a/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs
+++ b/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs
@@ -85,11 +85,11 @@ private static void CacheDeviceId(string deviceId)
// Cache device Id in Windows registry matching the OS architecture
using (RegistryKey baseKey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64))
{
- using(var key = baseKey.CreateSubKey(@"SOFTWARE\Microsoft\DeveloperTools"))
+ using (var key = baseKey.CreateSubKey(@"SOFTWARE\Microsoft\DeveloperTools"))
{
if (key != null)
{
- key.SetValue("deviceid", deviceId);
+ key.SetValue("deviceid", deviceId);
}
}
}
diff --git a/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs b/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs
index 5cd73f53abb8..5f1aab066131 100644
--- a/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs
+++ b/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs
@@ -33,7 +33,7 @@ public BooleanEnvironmentRule(params string[] variables)
public override bool IsMatch()
{
- return _variables.Any(variable =>
+ return _variables.Any(variable =>
bool.TryParse(Environment.GetEnvironmentVariable(variable), out bool value) && value);
}
}
@@ -96,8 +96,8 @@ public EnvironmentDetectionRuleWithResult(T result, params string[] variables)
/// The result value if the rule matches; otherwise, null.
public T? GetResult()
{
- return _variables.Any(variable => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(variable)))
- ? _result
+ return _variables.Any(variable => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(variable)))
+ ? _result
: null;
}
-}
\ No newline at end of file
+}
diff --git a/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs b/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs
index fe599569aa6c..1fb747d47ae5 100644
--- a/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs
+++ b/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs
@@ -6,4 +6,4 @@ namespace Microsoft.DotNet.Cli.Telemetry;
internal interface ILLMEnvironmentDetector
{
string? GetLLMEnvironment();
-}
\ No newline at end of file
+}
diff --git a/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs
index 16d13a6879e7..532e91a2bd0a 100644
--- a/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs
+++ b/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs
@@ -20,4 +20,4 @@ internal class LLMEnvironmentDetectorForTelemetry : ILLMEnvironmentDetector
var results = _detectionRules.Select(r => r.GetResult()).Where(r => r != null).ToArray();
return results.Length > 0 ? string.Join(", ", results) : null;
}
-}
\ No newline at end of file
+}
diff --git a/src/Cli/dotnet/Telemetry/Telemetry.cs b/src/Cli/dotnet/Telemetry/Telemetry.cs
index d9c3a59bd8a1..38f0d1c7ca19 100644
--- a/src/Cli/dotnet/Telemetry/Telemetry.cs
+++ b/src/Cli/dotnet/Telemetry/Telemetry.cs
@@ -258,6 +258,6 @@ static IDictionary Combine(IDictionary
{
eventMeasurements[measurement.Key] = measurement.Value;
}
- return eventMeasurements;
- }
+ return eventMeasurements;
+ }
}
diff --git a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs b/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs
index 641c8c583a7c..9da8558f5384 100644
--- a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs
+++ b/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs
@@ -62,7 +62,7 @@ private static void EnsureNoLeadingDot(string commandName)
}
}
-
+
public string CommandName { get; }
public string ToolAssemblyEntryPoint { get; }
From 7d82904e16d44f13165acd93ba05c856dd448509 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 1 Oct 2025 08:26:06 +0000
Subject: [PATCH 03/19] Revert formatting changes, keep only functional changes
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
---
.../ProjectToolsCommandResolver.cs | 2 +-
src/Cli/dotnet/Commands/Build/BuildCommand.cs | 2 +-
src/Cli/dotnet/Commands/Clean/CleanCommand.cs | 4 ++--
.../dotnet/Commands/Format/FormatCommand.cs | 2 +-
.../Hidden/Complete/CompleteCommand.cs | 2 +-
.../InternalReportInstallSuccessCommand.cs | 2 +-
.../dotnet/Commands/MSBuild/MSBuildCommand.cs | 4 ++--
src/Cli/dotnet/Commands/Pack/PackCommand.cs | 6 +++---
.../Package/List/PackageListCommand.cs | 4 ++--
.../Package/Search/PackageSearchCommand.cs | 2 +-
.../dotnet/Commands/Publish/PublishCommand.cs | 2 +-
.../dotnet/Commands/Restore/RestoreCommand.cs | 2 +-
.../Commands/Restore/RestoringCommand.cs | 8 ++++----
.../LaunchSettings/LaunchSettingsManager.cs | 4 ++--
src/Cli/dotnet/Commands/Run/RunTelemetry.cs | 2 +-
.../Migrate/SolutionMigrateCommand.cs | 4 +---
.../Solution/Remove/SolutionRemoveCommand.cs | 2 +-
src/Cli/dotnet/Commands/Store/StoreCommand.cs | 2 +-
.../Test/MTP/Terminal/TerminalTestReporter.cs | 4 ++--
.../Test/MTP/TestApplicationActionQueue.cs | 2 +-
.../Commands/Test/VSTest/TestCommand.cs | 9 ++++-----
.../Test/VSTest/VSTestForwardingApp.cs | 2 +-
.../ToolInstallGlobalOrToolPathCommand.cs | 20 +++++++++----------
.../Tool/Install/ToolInstallLocalCommand.cs | 2 +-
.../Commands/Tool/List/ToolListJsonHelper.cs | 12 +++++------
.../Tool/Restore/ToolPackageRestorer.cs | 2 +-
.../ToolUninstallGlobalOrToolPathCommand.cs | 2 +-
.../ToolUpdateGlobalOrToolPathCommand.cs | 6 +++---
.../History/WorkloadHistoryCommand.cs | 4 ++--
.../Restore/WorkloadRestoreCommand.cs | 2 +-
.../Commands/Workload/WorkloadCommandBase.cs | 2 +-
.../Workload/WorkloadCommandParser.cs | 2 +-
src/Cli/dotnet/CommonOptions.cs | 2 +-
src/Cli/dotnet/DotNetCommandFactory.cs | 2 +-
.../Extensions/CommonOptionsExtensions.cs | 2 +-
.../INuGetPackageDownloader.cs | 2 +-
.../NuGetPackageDownloader.cs | 4 ++--
.../dotnet/ReleasePropertyProjectLocator.cs | 3 +--
src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs | 4 ++--
.../Telemetry/EnvironmentDetectionRule.cs | 8 ++++----
.../Telemetry/ILLMEnvironmentDetector.cs | 2 +-
.../LLMEnvironmentDetectorForTelemetry.cs | 2 +-
src/Cli/dotnet/Telemetry/Telemetry.cs | 4 ++--
.../dotnet/ToolPackage/ToolConfiguration.cs | 2 +-
44 files changed, 80 insertions(+), 84 deletions(-)
diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs
index be3d9294b176..2f8bb7badd98 100644
--- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs
+++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs
@@ -385,7 +385,7 @@ internal void GenerateDepsJsonFile(
string? stdOut;
string? stdErr;
- var msbuildArgs = MSBuildArgs.AnalyzeMSBuildArguments([.. args], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, BuildCommandParser.TargetOption, BuildCommandParser.VerbosityOption);
+ var msbuildArgs = MSBuildArgs.AnalyzeMSBuildArguments([..args], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, BuildCommandParser.TargetOption, BuildCommandParser.VerbosityOption);
var forwardingAppWithoutLogging = new MSBuildForwardingAppWithoutLogging(msbuildArgs, msBuildExePath);
if (forwardingAppWithoutLogging.ExecuteMSBuildOutOfProc)
{
diff --git a/src/Cli/dotnet/Commands/Build/BuildCommand.cs b/src/Cli/dotnet/Commands/Build/BuildCommand.cs
index 4d8e425dace9..871ead794e84 100644
--- a/src/Cli/dotnet/Commands/Build/BuildCommand.cs
+++ b/src/Cli/dotnet/Commands/Build/BuildCommand.cs
@@ -12,7 +12,7 @@ public static class BuildCommand
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "build", .. args]);
+ var parseResult = Parser.Parse(["dotnet", "build", ..args]);
return FromParseResult(parseResult, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Clean/CleanCommand.cs b/src/Cli/dotnet/Commands/Clean/CleanCommand.cs
index 7c5516b05dd3..1290b8b68cfd 100644
--- a/src/Cli/dotnet/Commands/Clean/CleanCommand.cs
+++ b/src/Cli/dotnet/Commands/Clean/CleanCommand.cs
@@ -13,7 +13,7 @@ public class CleanCommand(MSBuildArgs msbuildArgs, string? msbuildPath = null) :
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "clean", .. args]);
+ var result = Parser.Parse(["dotnet", "clean", ..args]);
return FromParseResult(result, msbuildPath);
}
@@ -33,7 +33,7 @@ public static CommandBase FromParseResult(ParseResult result, string? msbuildPat
NoWriteBuildMarkers = true,
},
static (msbuildArgs, msbuildPath) => new CleanCommand(msbuildArgs, msbuildPath),
- [CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, CleanCommandParser.TargetOption, CleanCommandParser.VerbosityOption],
+ [ CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, CleanCommandParser.TargetOption, CleanCommandParser.VerbosityOption ],
result,
msbuildPath
);
diff --git a/src/Cli/dotnet/Commands/Format/FormatCommand.cs b/src/Cli/dotnet/Commands/Format/FormatCommand.cs
index d6629af67720..9ee9296172fa 100644
--- a/src/Cli/dotnet/Commands/Format/FormatCommand.cs
+++ b/src/Cli/dotnet/Commands/Format/FormatCommand.cs
@@ -13,7 +13,7 @@ public class FormatCommand(IEnumerable argsToForward) : FormatForwarding
{
public static FormatCommand FromArgs(string[] args)
{
- var result = Parser.Parse(["dotnet", "format", .. args]);
+ var result = Parser.Parse(["dotnet", "format", ..args]);
return FromParseResult(result);
}
diff --git a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs
index 33904941b817..5cdf66cfca6e 100644
--- a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs
+++ b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs
@@ -19,7 +19,7 @@ public static int Run(ParseResult parseResult)
public static int RunWithReporter(string[] args, IReporter reporter)
{
- var result = Parser.Parse(["dotnet", "complete", .. args]);
+ var result = Parser.Parse(["dotnet", "complete", ..args]);
return RunWithReporter(result, reporter);
}
diff --git a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs
index bed479d01816..744289023948 100644
--- a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs
+++ b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs
@@ -25,7 +25,7 @@ public static int Run(ParseResult parseResult)
public static void ProcessInputAndSendTelemetry(string[] args, ITelemetry telemetry)
{
- var result = Parser.Parse(["dotnet", "internal-reportinstallsuccess", .. args]);
+ var result = Parser.Parse(["dotnet", "internal-reportinstallsuccess", ..args]);
ProcessInputAndSendTelemetry(result, telemetry);
}
diff --git a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs
index 5deae21cb609..cf0b7e06c660 100644
--- a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs
+++ b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs
@@ -10,11 +10,11 @@ namespace Microsoft.DotNet.Cli.Commands.MSBuild;
public class MSBuildCommand(
IEnumerable msbuildArgs,
string? msbuildPath = null
-) : MSBuildForwardingApp(MSBuildArgs.AnalyzeMSBuildArguments([.. msbuildArgs], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, MSBuildCommandParser.TargetOption, CommonOptions.VerbosityOption()), msbuildPath, includeLogo: true)
+) : MSBuildForwardingApp(MSBuildArgs.AnalyzeMSBuildArguments([..msbuildArgs], CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, MSBuildCommandParser.TargetOption, CommonOptions.VerbosityOption()), msbuildPath, includeLogo: true)
{
public static MSBuildCommand FromArgs(string[] args, string? msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "msbuild", .. args]);
+ var result = Parser.Parse(["dotnet", "msbuild", ..args]);
return FromParseResult(result, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Pack/PackCommand.cs b/src/Cli/dotnet/Commands/Pack/PackCommand.cs
index 3d574c30bf18..1e88f22688f5 100644
--- a/src/Cli/dotnet/Commands/Pack/PackCommand.cs
+++ b/src/Cli/dotnet/Commands/Pack/PackCommand.cs
@@ -24,7 +24,7 @@ public class PackCommand(
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "pack", .. args]);
+ var parseResult = Parser.Parse(["dotnet", "pack", ..args]);
return FromParseResult(parseResult, msbuildPath);
}
@@ -92,14 +92,14 @@ public static int RunPackCommand(ParseResult parseResult)
if (args.Count != 1)
{
- Console.Error.WriteLine(CliStrings.PackCmd_OneNuspecAllowed);
+ Console.Error.WriteLine(CliStrings.PackCmd_OneNuspecAllowed);
return 1;
}
var nuspecPath = args[0];
var packArgs = new PackArgs()
- {
+ {
Logger = new NuGetConsoleLogger(),
Exclude = new List(),
OutputDirectory = parseResult.GetValue(PackCommandParser.OutputOption),
diff --git a/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs b/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs
index 7e340ac81fa7..27520377cad2 100644
--- a/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs
+++ b/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs
@@ -4,12 +4,12 @@
#nullable disable
using System.CommandLine;
-using System.Globalization;
using Microsoft.DotNet.Cli.Commands.Hidden.List;
-using Microsoft.DotNet.Cli.Commands.MSBuild;
using Microsoft.DotNet.Cli.Commands.NuGet;
using Microsoft.DotNet.Cli.Extensions;
using Microsoft.DotNet.Cli.Utils;
+using System.Globalization;
+using Microsoft.DotNet.Cli.Commands.MSBuild;
namespace Microsoft.DotNet.Cli.Commands.Package.List;
diff --git a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs
index 8bbfd5261cdc..4317f96329be 100644
--- a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs
+++ b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs
@@ -3,9 +3,9 @@
#nullable disable
-using System.CommandLine;
using Microsoft.DotNet.Cli.Commands.NuGet;
using Microsoft.DotNet.Cli.Extensions;
+using System.CommandLine;
namespace Microsoft.DotNet.Cli.Commands.Package.Search;
diff --git a/src/Cli/dotnet/Commands/Publish/PublishCommand.cs b/src/Cli/dotnet/Commands/Publish/PublishCommand.cs
index dfafac3d4807..45dc32c84300 100644
--- a/src/Cli/dotnet/Commands/Publish/PublishCommand.cs
+++ b/src/Cli/dotnet/Commands/Publish/PublishCommand.cs
@@ -21,7 +21,7 @@ private PublishCommand(
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "publish", .. args]);
+ var parseResult = Parser.Parse(["dotnet", "publish", ..args]);
return FromParseResult(parseResult);
}
diff --git a/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs b/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs
index bd685b2b6ec2..6eb650b0e261 100644
--- a/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs
+++ b/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs
@@ -13,7 +13,7 @@ public static class RestoreCommand
{
public static CommandBase FromArgs(string[] args, string? msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "restore", .. args]);
+ var result = Parser.Parse(["dotnet", "restore", ..args]);
return FromParseResult(result, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs b/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs
index ea92c35ab063..dd2e961c1524 100644
--- a/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs
+++ b/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs
@@ -37,7 +37,7 @@ public RestoringCommand(
string? msbuildPath = null,
string? userProfileDir = null,
bool? advertiseWorkloadUpdates = null)
- : base(GetCommandArguments(msbuildArgs, noRestore), msbuildPath)
+ : base(GetCommandArguments(msbuildArgs, noRestore), msbuildPath)
{
userProfileDir = CliFolderPathCalculator.DotnetUserProfileFolderPath;
Task.Run(() => WorkloadManifestUpdater.BackgroundUpdateAdvertisingManifestsAsync(userProfileDir));
@@ -122,13 +122,13 @@ private static MSBuildArgs GetCommandArguments(
ReadOnlyDictionary restoreProperties =
msbuildArgs.GlobalProperties?
.Where(kvp => !IsPropertyExcludedFromRestore(kvp.Key))?
- .ToDictionary(kvp => kvp.Key, kvp => kvp.Value, StringComparer.OrdinalIgnoreCase) is { } filteredList ? new(filteredList) : ReadOnlyDictionary.Empty;
+ .ToDictionary(kvp => kvp.Key, kvp => kvp.Value, StringComparer.OrdinalIgnoreCase) is { } filteredList ? new(filteredList): ReadOnlyDictionary.Empty;
var restoreMSBuildArgs =
MSBuildArgs.FromProperties(RestoreOptimizationProperties)
.CloneWithAdditionalTargets("Restore")
.CloneWithExplicitArgs([.. newArgumentsToAdd, .. existingArgumentsToForward])
.CloneWithAdditionalProperties(restoreProperties);
- if (msbuildArgs.Verbosity is { } verbosity)
+ if (msbuildArgs.Verbosity is {} verbosity)
{
restoreMSBuildArgs = restoreMSBuildArgs.CloneWithVerbosity(verbosity);
}
@@ -175,7 +175,7 @@ private static bool HasPropertyToExcludeFromRestore(MSBuildArgs msbuildArgs)
private static readonly List FlagsThatTriggerSilentSeparateRestore = [.. ComputeFlags(FlagsThatTriggerSilentRestore)];
- private static readonly List PropertiesToExcludeFromSeparateRestore = [.. PropertiesToExcludeFromRestore];
+ private static readonly List PropertiesToExcludeFromSeparateRestore = [ .. PropertiesToExcludeFromRestore ];
///
/// We investigate the arguments we're about to send to a separate restore call and filter out
diff --git a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs
index 3e4c7b2bd53e..a1776027476d 100644
--- a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs
+++ b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs
@@ -84,7 +84,7 @@ public static LaunchSettingsApplyResult TryApplyLaunchSettings(string launchSett
{
if (prop.Value.TryGetProperty(CommandNameKey, out var commandNameElement) && commandNameElement.ValueKind == JsonValueKind.String)
{
- if (commandNameElement.GetString() is { } commandNameElementKey && _providers.ContainsKey(commandNameElementKey))
+ if (commandNameElement.GetString() is { } commandNameElementKey && _providers.ContainsKey(commandNameElementKey))
{
profileObject = prop.Value;
break;
@@ -120,7 +120,7 @@ public static LaunchSettingsApplyResult TryApplyLaunchSettings(string launchSett
}
}
- private static bool TryLocateHandler(string? commandName, [NotNullWhen(true)] out ILaunchSettingsProvider? provider)
+ private static bool TryLocateHandler(string? commandName, [NotNullWhen(true)]out ILaunchSettingsProvider? provider)
{
if (commandName == null)
{
diff --git a/src/Cli/dotnet/Commands/Run/RunTelemetry.cs b/src/Cli/dotnet/Commands/Run/RunTelemetry.cs
index 47fae9a27f85..35e13b2d3fd2 100644
--- a/src/Cli/dotnet/Commands/Run/RunTelemetry.cs
+++ b/src/Cli/dotnet/Commands/Run/RunTelemetry.cs
@@ -234,4 +234,4 @@ private static bool IsDefaultProfile(string? profileName)
// The default profile name at this point is "(Default)"
return profileName.Equals("(Default)", StringComparison.OrdinalIgnoreCase);
}
-}
+}
\ No newline at end of file
diff --git a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs
index 8c445a02d87f..074431c8981b 100644
--- a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs
+++ b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs
@@ -29,9 +29,7 @@ public override int Execute()
{
ConvertToSlnxAsync(slnFileFullPath, slnxFileFullPath, CancellationToken.None).Wait();
return 0;
- }
- catch (Exception ex)
- {
+ } catch (Exception ex) {
throw new GracefulException(ex.Message, ex);
}
}
diff --git a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs
index a0e624ef5a4a..36030bd22621 100644
--- a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs
+++ b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs
@@ -124,7 +124,7 @@ private static async Task RemoveProjectsAsync(string solutionFileFullPath, IEnum
{
solution.RemoveFolder(folder);
// After removal, adjust index and continue to avoid skipping folders after removal
- i--;
+ i--;
}
}
diff --git a/src/Cli/dotnet/Commands/Store/StoreCommand.cs b/src/Cli/dotnet/Commands/Store/StoreCommand.cs
index f02b52b641dc..0c7846c513e2 100644
--- a/src/Cli/dotnet/Commands/Store/StoreCommand.cs
+++ b/src/Cli/dotnet/Commands/Store/StoreCommand.cs
@@ -19,7 +19,7 @@ private StoreCommand(IEnumerable msbuildArgs, string msbuildPath = null)
public static StoreCommand FromArgs(string[] args, string msbuildPath = null)
{
- var result = Parser.Parse(["dotnet", "store", .. args]);
+ var result = Parser.Parse(["dotnet", "store", ..args]);
return FromParseResult(result, msbuildPath);
}
diff --git a/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs b/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs
index 59411986c9f4..22929d8dfb7f 100644
--- a/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs
+++ b/src/Cli/dotnet/Commands/Test/MTP/Terminal/TerminalTestReporter.cs
@@ -1,12 +1,12 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Concurrent;
+using Microsoft.TemplateEngine.Cli.Help;
using System.Globalization;
using System.Text.RegularExpressions;
using Microsoft.CodeAnalysis;
-using Microsoft.DotNet.Cli.Commands.Test.IPC.Models;
-using Microsoft.TemplateEngine.Cli.Help;
using Microsoft.Testing.Platform.OutputDevice.Terminal;
+using Microsoft.DotNet.Cli.Commands.Test.IPC.Models;
namespace Microsoft.DotNet.Cli.Commands.Test.Terminal;
diff --git a/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs b/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs
index 4496703ace28..41ee319317e7 100644
--- a/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs
+++ b/src/Cli/dotnet/Commands/Test/MTP/TestApplicationActionQueue.cs
@@ -78,7 +78,7 @@ private async Task Read(BuildOptions buildOptions, TestOptions testOptions, Term
{
result = ExitCode.GenericFailure;
}
-
+
lock (_lock)
{
if (_aggregateExitCode is null)
diff --git a/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs b/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs
index 9ade2f4d0069..a17cc0031e13 100644
--- a/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs
+++ b/src/Cli/dotnet/Commands/Test/VSTest/TestCommand.cs
@@ -153,7 +153,7 @@ private static int ForwardToVSTestConsole(ParseResult parseResult, string[] args
public static TestCommand FromArgs(string[] args, string? testSessionCorrelationId = null, string? msbuildPath = null)
{
- var parseResult = Parser.Parse(["dotnet", "test", .. args]);
+ var parseResult = Parser.Parse(["dotnet", "test", ..args]);
// settings parameters are after -- (including --), these should not be considered by the parser
string[] settings = [.. args.SkipWhile(a => a != "--")];
@@ -239,10 +239,9 @@ private static TestCommand FromParseResult(ParseResult result, string[] settings
}
}
-
+
Dictionary variables = VSTestForwardingApp.GetVSTestRootVariables();
- foreach (var (rootVariableName, rootValue) in variables)
- {
+ foreach (var (rootVariableName, rootValue) in variables) {
testCommand.EnvironmentVariable(rootVariableName, rootValue);
VSTestTrace.SafeWriteTrace(() => $"Root variable set {rootVariableName}:{rootValue}");
}
@@ -304,7 +303,7 @@ private static bool ContainsBuiltTestSources(string[] args)
if (arg.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) || arg.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
{
var previousArg = i > 0 ? args[i - 1] : null;
- if (previousArg != null && CommonOptions.PropertiesOption.Aliases.Contains(previousArg))
+ if (previousArg != null && CommonOptions.PropertiesOption.Aliases.Contains(previousArg))
{
return false;
}
diff --git a/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs b/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs
index 26a021485c97..fb81e15466f9 100644
--- a/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs
+++ b/src/Cli/dotnet/Commands/Test/VSTest/VSTestForwardingApp.cs
@@ -20,7 +20,7 @@ public VSTestForwardingApp(IEnumerable argsToForward)
WithEnvironmentVariable(rootVariableName, rootValue);
VSTestTrace.SafeWriteTrace(() => $"Root variable set {rootVariableName}:{rootValue}");
}
-
+
VSTestTrace.SafeWriteTrace(() => $"Forwarding to '{GetVSTestExePath()}' with args \"{argsToForward?.Aggregate((a, b) => $"{a} | {b}")}\"");
}
diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs
index 431b92f2c654..c465e20372e5 100644
--- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs
@@ -5,20 +5,20 @@
using System.CommandLine;
using System.Transactions;
-using Microsoft.DotNet.Cli.Commands.Tool.Common;
-using Microsoft.DotNet.Cli.Commands.Tool.List;
-using Microsoft.DotNet.Cli.Commands.Tool.Uninstall;
-using Microsoft.DotNet.Cli.Commands.Tool.Update;
-using Microsoft.DotNet.Cli.Extensions;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
-using Microsoft.DotNet.Cli.ShellShim;
using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.Utils;
-using Microsoft.DotNet.Cli.Utils.Extensions;
using Microsoft.Extensions.EnvironmentAbstractions;
using NuGet.Common;
using NuGet.Frameworks;
using NuGet.Versioning;
+using Microsoft.DotNet.Cli.Utils.Extensions;
+using Microsoft.DotNet.Cli.Extensions;
+using Microsoft.DotNet.Cli.ShellShim;
+using Microsoft.DotNet.Cli.Commands.Tool.Update;
+using Microsoft.DotNet.Cli.Commands.Tool.Common;
+using Microsoft.DotNet.Cli.Commands.Tool.Uninstall;
+using Microsoft.DotNet.Cli.Commands.Tool.List;
namespace Microsoft.DotNet.Cli.Commands.Tool.Install;
@@ -187,7 +187,7 @@ private int ExecuteInstallCommand(PackageId packageId)
{
_reporter.WriteLine(string.Format(CliCommandStrings.ToolAlreadyInstalled, oldPackageNullable.Id, oldPackageNullable.Version.ToNormalizedString()).Green());
return 0;
- }
+ }
}
TransactionalAction.Run(() =>
@@ -318,7 +318,7 @@ private static void RunWithHandlingUninstallError(Action uninstallAction, Packag
{
try
{
- uninstallAction();
+ uninstallAction();
}
catch (Exception ex)
when (ToolUninstallCommandLowLevelErrorConverter.ShouldConvertToUserFacingError(ex))
@@ -396,7 +396,7 @@ private void PrintSuccessMessage(IToolPackage oldPackage, IToolPackage newInstal
{
_reporter.WriteLine(
string.Format(
-
+
newInstalledPackage.Version.IsPrerelease ?
CliCommandStrings.UpdateSucceededPreVersionNoChange : CliCommandStrings.UpdateSucceededStableVersionNoChange,
newInstalledPackage.Id, newInstalledPackage.Version).Green());
diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs
index e0bf8ccd3247..87fb7860f992 100644
--- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs
@@ -83,7 +83,7 @@ public override int Execute()
}
else
{
- return ExecuteInstallCommand((PackageId)_packageId);
+ return ExecuteInstallCommand((PackageId) _packageId);
}
}
diff --git a/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs b/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs
index 914f19efe192..2ff9552ceeca 100644
--- a/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs
+++ b/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs
@@ -10,12 +10,12 @@ namespace Microsoft.DotNet.Cli.Commands.Tool.List;
internal sealed class VersionedDataContract
{
- ///
- /// The version of the JSON format for dotnet tool list.
- ///
+ ///
+ /// The version of the JSON format for dotnet tool list.
+ ///
[JsonPropertyName("version")]
public int Version { get; init; } = 1;
-
+
[JsonPropertyName("data")]
public required TContract Data { get; init; }
}
@@ -24,10 +24,10 @@ internal class ToolListJsonContract
{
[JsonPropertyName("packageId")]
public required string PackageId { get; init; }
-
+
[JsonPropertyName("version")]
public required string Version { get; init; }
-
+
[JsonPropertyName("commands")]
public required string[] Commands { get; init; }
}
diff --git a/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs b/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs
index 1377a97cb006..b1c3b3f4ed52 100644
--- a/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs
+++ b/src/Cli/dotnet/Commands/Tool/Restore/ToolPackageRestorer.cs
@@ -109,7 +109,7 @@ private static bool ManifestCommandMatchesActualInPackage(
IReadOnlyList toolPackageCommands)
{
ToolCommandName[] commandsFromPackage = [.. toolPackageCommands.Select(t => t.Name)];
- return !commandsFromManifest.Any(cmd => !commandsFromPackage.Contains(cmd)) && !commandsFromPackage.Any(cmd => !commandsFromManifest.Contains(cmd));
+return !commandsFromManifest.Any(cmd => !commandsFromPackage.Contains(cmd)) && !commandsFromPackage.Any(cmd => !commandsFromManifest.Contains(cmd));
}
public bool PackageHasBeenRestored(
diff --git a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs
index 6db95e91941a..58db9f55cc04 100644
--- a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs
@@ -73,7 +73,7 @@ public override int Execute()
TransactionalAction.Run(() =>
{
shellShimRepository.RemoveShim(package.Command);
-
+
toolPackageUninstaller.Uninstall(package.PackageDirectory);
});
diff --git a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs
index 2d4c881bbc83..4c73cebd76f0 100644
--- a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs
+++ b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs
@@ -4,12 +4,12 @@
#nullable disable
using System.CommandLine;
-using Microsoft.DotNet.Cli.Commands.Tool.Install;
-using Microsoft.DotNet.Cli.ShellShim;
-using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.Extensions.EnvironmentAbstractions;
+using Microsoft.DotNet.Cli.ToolPackage;
using CreateShellShimRepository = Microsoft.DotNet.Cli.Commands.Tool.Install.CreateShellShimRepository;
+using Microsoft.DotNet.Cli.ShellShim;
+using Microsoft.DotNet.Cli.Commands.Tool.Install;
namespace Microsoft.DotNet.Cli.Commands.Tool.Update;
diff --git a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs
index cbb727effd59..ceebc46404a9 100644
--- a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs
+++ b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs
@@ -4,11 +4,11 @@
#nullable disable
using System.CommandLine;
-using Microsoft.Deployment.DotNet.Releases;
-using Microsoft.DotNet.Cli.Commands.Workload.Install;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.NET.Sdk.WorkloadManifestReader;
+using Microsoft.Deployment.DotNet.Releases;
+using Microsoft.DotNet.Cli.Commands.Workload.Install;
namespace Microsoft.DotNet.Cli.Commands.Workload.History;
diff --git a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs
index e1f64e74fb98..1dbc16110933 100644
--- a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs
+++ b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs
@@ -60,7 +60,7 @@ public override int Execute()
});
workloadInstaller.Shutdown();
-
+
return 0;
}
diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs b/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs
index 83c3622afd18..44b441349be3 100644
--- a/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs
+++ b/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs
@@ -96,7 +96,7 @@ public WorkloadCommandBase(
Verbosity = verbosityOptions == null
? parseResult.GetValue(CommonOptions.VerbosityOption(VerbosityOptions.normal))
- : parseResult.GetValue(verbosityOptions);
+ : parseResult.GetValue(verbosityOptions) ;
ILogger nugetLogger = Verbosity.IsDetailedOrDiagnostic() ? new NuGetConsoleLogger() : new NullLogger();
diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs b/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs
index 4910fa324c34..32a38bdd9af9 100644
--- a/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs
+++ b/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs
@@ -20,8 +20,8 @@
using Microsoft.DotNet.Cli.Utils;
using Microsoft.NET.Sdk.WorkloadManifestReader;
using Microsoft.TemplateEngine.Cli.Commands;
-using Command = System.CommandLine.Command;
using IReporter = Microsoft.DotNet.Cli.Utils.IReporter;
+using Command = System.CommandLine.Command;
namespace Microsoft.DotNet.Cli.Commands.Workload;
diff --git a/src/Cli/dotnet/CommonOptions.cs b/src/Cli/dotnet/CommonOptions.cs
index 2b0c376c906f..aa1730a23525 100644
--- a/src/Cli/dotnet/CommonOptions.cs
+++ b/src/Cli/dotnet/CommonOptions.cs
@@ -348,7 +348,7 @@ public static ForwardedOption InteractiveOption(bool acceptArgument = fals
};
public static readonly Option> EnvOption = CreateEnvOption(CliStrings.CmdEnvironmentVariableDescription);
-
+
public static readonly Option> TestEnvOption = CreateEnvOption(CliStrings.CmdTestEnvironmentVariableDescription);
private static IReadOnlyDictionary ParseEnvironmentVariables(ArgumentResult argumentResult)
diff --git a/src/Cli/dotnet/DotNetCommandFactory.cs b/src/Cli/dotnet/DotNetCommandFactory.cs
index dcb70b05e6c9..ea5eb912e8f6 100644
--- a/src/Cli/dotnet/DotNetCommandFactory.cs
+++ b/src/Cli/dotnet/DotNetCommandFactory.cs
@@ -38,7 +38,7 @@ private static bool TryGetBuiltInCommand(string commandName, out Func Parser.Invoke([commandName, .. args]);
+ commandFunc = (args) => Parser.Invoke([commandName, ..args]);
return true;
}
commandFunc = null;
diff --git a/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs b/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs
index a225056f02f8..9254bbd73b77 100644
--- a/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs
+++ b/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs
@@ -4,8 +4,8 @@
#nullable disable
using Microsoft.Build.Framework;
-using Microsoft.DotNet.Cli.Utils;
using Microsoft.Extensions.Logging;
+using Microsoft.DotNet.Cli.Utils;
namespace Microsoft.DotNet.Cli.Extensions;
diff --git a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs
index 0c606c61dbf7..a5e54ba06bb9 100644
--- a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs
+++ b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs
@@ -43,4 +43,4 @@ Task GetBestPackageVersionAsync(PackageId packageId,
Task<(NuGetVersion version, PackageSource source)> GetBestPackageVersionAndSourceAsync(PackageId packageId,
VersionRange versionRange,
PackageSourceLocation packageSourceLocation = null);
-}
+}
diff --git a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
index a0ce16fe6d0b..a311e88c646d 100644
--- a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
+++ b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
@@ -75,7 +75,7 @@ public NuGetPackageDownloader(
_retryTimer = timer;
_sourceRepositories = new();
// If windows or env variable is set, verify signatures
- _verifySignatures = verifySignatures && (OperatingSystem.IsWindows() ? true
+ _verifySignatures = verifySignatures && (OperatingSystem.IsWindows() ? true
: bool.TryParse(Environment.GetEnvironmentVariable(NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification), out var shouldVerifySignature) ? shouldVerifySignature : OperatingSystem.IsLinux());
_cacheSettings = new SourceCacheContext
@@ -122,7 +122,7 @@ public async Task DownloadPackageAsync(PackageId packageId,
throw new ArgumentException($"Package download folder must be specified either via {nameof(NuGetPackageDownloader)} constructor or via {nameof(downloadFolder)} method argument.");
}
var pathResolver = new VersionFolderPathResolver(resolvedDownloadFolder);
-
+
string nupkgPath = pathResolver.GetPackageFilePath(packageId.ToString(), resolvedPackageVersion);
Directory.CreateDirectory(Path.GetDirectoryName(nupkgPath));
diff --git a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs
index 7c03df034464..e85fb9878d4c 100644
--- a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs
+++ b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs
@@ -230,8 +230,7 @@ DependentCommandOptions commandOptions
{
return projectData;
}
- }
- ;
+ };
return null;
}
diff --git a/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs b/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs
index 7960deb22cc7..015af6723629 100644
--- a/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs
+++ b/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs
@@ -85,11 +85,11 @@ private static void CacheDeviceId(string deviceId)
// Cache device Id in Windows registry matching the OS architecture
using (RegistryKey baseKey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64))
{
- using (var key = baseKey.CreateSubKey(@"SOFTWARE\Microsoft\DeveloperTools"))
+ using(var key = baseKey.CreateSubKey(@"SOFTWARE\Microsoft\DeveloperTools"))
{
if (key != null)
{
- key.SetValue("deviceid", deviceId);
+ key.SetValue("deviceid", deviceId);
}
}
}
diff --git a/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs b/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs
index 5f1aab066131..5cd73f53abb8 100644
--- a/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs
+++ b/src/Cli/dotnet/Telemetry/EnvironmentDetectionRule.cs
@@ -33,7 +33,7 @@ public BooleanEnvironmentRule(params string[] variables)
public override bool IsMatch()
{
- return _variables.Any(variable =>
+ return _variables.Any(variable =>
bool.TryParse(Environment.GetEnvironmentVariable(variable), out bool value) && value);
}
}
@@ -96,8 +96,8 @@ public EnvironmentDetectionRuleWithResult(T result, params string[] variables)
/// The result value if the rule matches; otherwise, null.
public T? GetResult()
{
- return _variables.Any(variable => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(variable)))
- ? _result
+ return _variables.Any(variable => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(variable)))
+ ? _result
: null;
}
-}
+}
\ No newline at end of file
diff --git a/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs b/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs
index 1fb747d47ae5..fe599569aa6c 100644
--- a/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs
+++ b/src/Cli/dotnet/Telemetry/ILLMEnvironmentDetector.cs
@@ -6,4 +6,4 @@ namespace Microsoft.DotNet.Cli.Telemetry;
internal interface ILLMEnvironmentDetector
{
string? GetLLMEnvironment();
-}
+}
\ No newline at end of file
diff --git a/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs
index 532e91a2bd0a..16d13a6879e7 100644
--- a/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs
+++ b/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs
@@ -20,4 +20,4 @@ internal class LLMEnvironmentDetectorForTelemetry : ILLMEnvironmentDetector
var results = _detectionRules.Select(r => r.GetResult()).Where(r => r != null).ToArray();
return results.Length > 0 ? string.Join(", ", results) : null;
}
-}
+}
\ No newline at end of file
diff --git a/src/Cli/dotnet/Telemetry/Telemetry.cs b/src/Cli/dotnet/Telemetry/Telemetry.cs
index 38f0d1c7ca19..d9c3a59bd8a1 100644
--- a/src/Cli/dotnet/Telemetry/Telemetry.cs
+++ b/src/Cli/dotnet/Telemetry/Telemetry.cs
@@ -258,6 +258,6 @@ static IDictionary Combine(IDictionary
{
eventMeasurements[measurement.Key] = measurement.Value;
}
- return eventMeasurements;
- }
+ return eventMeasurements;
+ }
}
diff --git a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs b/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs
index 9da8558f5384..641c8c583a7c 100644
--- a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs
+++ b/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs
@@ -62,7 +62,7 @@ private static void EnsureNoLeadingDot(string commandName)
}
}
-
+
public string CommandName { get; }
public string ToolAssemblyEntryPoint { get; }
From 9587df94e6d612069d343611345ebd8d2026d8da Mon Sep 17 00:00:00 2001
From: Youssef1313
Date: Wed, 1 Oct 2025 10:36:46 +0200
Subject: [PATCH 04/19] Cleanup
---
src/Cli/dotnet/Commands/CliCommandStrings.resx | 5 +----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf | 5 -----
src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf | 5 -----
14 files changed, 1 insertion(+), 69 deletions(-)
diff --git a/src/Cli/dotnet/Commands/CliCommandStrings.resx b/src/Cli/dotnet/Commands/CliCommandStrings.resx
index 730bd06a1518..19020cff5be7 100644
--- a/src/Cli/dotnet/Commands/CliCommandStrings.resx
+++ b/src/Cli/dotnet/Commands/CliCommandStrings.resx
@@ -1,4 +1,4 @@
-
+
+
From 2b413af51569ff4267a19891f358be165a5c2421 Mon Sep 17 00:00:00 2001
From: Youssef Victor
Date: Wed, 8 Oct 2025 07:56:01 +0200
Subject: [PATCH 19/19] Update
MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt
---
...shotTests.VerifyMTPHelpOutput.verified.txt | 55 ++++++-------------
1 file changed, 18 insertions(+), 37 deletions(-)
diff --git a/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt b/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt
index feb6eec78c9e..777d533e0740 100644
--- a/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt
+++ b/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt
@@ -1,85 +1,66 @@
Description:
- .NET Test Command for Microsoft.Testing.Platform (opted-in via 'global.json' file). This only supports
- Microsoft.Testing.Platform and doesn't support VSTest. For more information, see https://aka.ms/dotnet-test.
+ .NET Test Command for Microsoft.Testing.Platform (opted-in via 'global.json' file). This only supports Microsoft.Testing.Platform and doesn't support VSTest. For more information, see https://aka.ms/dotnet-test.
Usage:
dotnet test [options] [platform options] [extension options]
Options:
- --project Defines the path of the project file to test. Use path to the project
- file, or path to the directory containing the project file. If not
- specified, it defaults to the current directory.
- --solution 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.
+ --project Defines the path of the project file to test. Use path to the project file, or path to the directory containing the project file. If not specified, it defaults to the current directory.
+ --solution 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.
--test-modules Run tests for the specified test modules.
--root-directory The test modules have the specified root directory.
--results-directory The directory where the test results will be placed.
The specified directory will be created if it does not exist.
--config-file Specifies a testconfig.json file.
--diagnostic-output-directory Output directory of the diagnostic logging.
- If not specified the file will be generated inside the default
- 'TestResults' directory.
+ If not specified the file will be generated inside the default 'TestResults' directory.
--max-parallel-test-modules The max number of test modules that can run in parallel.
--minimum-expected-tests Specifies the minimum number of tests that are expected to run.
-a, --arch The target architecture.
-e, --environment Sets the value of an environment variable.
Creates the variable if it does not exist, overrides if it does.
- This argument can be specified multiple times to provide multiple
- variables.
+ This argument can be specified multiple times to provide multiple variables.
Examples:
-e VARIABLE=abc
-e VARIABLE="value with spaces"
-e VARIABLE="value;seperated with;semicolons"
-e VAR1=abc -e VAR2=def -e VAR3=ghi
- -c, --configuration The configuration to use for running tests. The default for most
- projects is 'Debug'.
- -f, --framework The target framework to run tests for. The target framework must also
- be specified in the project file.
+ -c, --configuration The configuration to use for running tests. The default for most projects is 'Debug'.
+ -f, --framework The target framework to run tests for. The target framework must also be specified in the project file.
--os The target operating system.
-r, --runtime The target runtime to test for.
- -v, -verbosity Set the MSBuild verbosity level. Allowed values are q[uiet],
- m[inimal], n[ormal], d[etailed], and diag[nostic].
+ -v, -verbosity Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
--no-restore Do not restore the project before building. [default: False]
- --no-build Do not build the project before testing. Implies --no-restore.
- [default: False]
+ --no-build Do not build the project before testing. Implies --no-restore. [default: False]
--no-ansi Disable ANSI output. [default: False]
--no-progress Disable progress reporting. [default: False]
--output Verbosity of test output.
--list-tests List the discovered tests instead of running the tests.
- --no-launch-profile Do not attempt to use launchSettings.json or [app].run.json to
- configure the application. [default: False]
- --no-launch-profile-arguments Do not use arguments specified in launch profile to run the
- application. [default: False]
+ --no-launch-profile Do not attempt to use launchSettings.json or [app].run.json to configure the application. [default: False]
+ --no-launch-profile-arguments Do not use arguments specified in launch profile to run the application. [default: False]
-?, -h, --help Show command line help.
Waiting for options and extensions...
Platform Options:
- --debug Allows to pause execution in order to attach to the process for debug
- purposes.
+ --debug Allows to pause execution in order to attach to the process for debug purposes.
--diagnostic Enable the diagnostic logging. The default log level is 'Trace'.
- The file will be written in the output directory with the name
- log_[yyMMddHHmmssfff].diag
+ The file will be written in the output directory with the name log_[yyMMddHHmmssfff].diag
--diagnostic-filelogger-synchronouswrite Force the built-in file logger to write the log synchronously.
- Useful for scenario where you don't want to lose any log (i.e. in case of
- crash).
+ Useful for scenario where you don't want to lose any log (i.e. in case of crash).
Note that this is slowing down the test execution.
--diagnostic-output-fileprefix Prefix for the log file name that will replace '[log]_.'
--diagnostic-verbosity Define the level of the verbosity for the --diagnostic.
- The available values are 'Trace', 'Debug', 'Information', 'Warning',
- 'Error', and 'Critical'.
+ The available values are 'Trace', 'Debug', 'Information', 'Warning', 'Error', and 'Critical'.
--exit-on-process-exit Exit the test process if dependent process exits. PID must be provided.
--filter-uid Provides a list of test node UIDs to filter by.
--help Show the command line help.
--ignore-exit-code Do not report non successful exit value for specific exit codes
- (e.g. '--ignore-exit-code 8;9' ignore exit code 8 and 9 and will return 0
- in these case)
+ (e.g. '--ignore-exit-code 8;9' ignore exit code 8 and 9 and will return 0 in these case)
--info Display .NET test application information.
--timeout A global test execution timeout.
- Takes one argument as string in the format [h|m|s] where 'value' is
- float.
+ Takes one argument as string in the format [h|m|s] where 'value' is float.
Extension Options:
--report-trx Enable generating TRX report
- --report-trx-filename The name of the generated TRX report
\ No newline at end of file
+ --report-trx-filename The name of the generated TRX report