349 references to CliCommandStrings
dotnet-aot (349)
Generated\361d1da7f942c932\Microsoft.DotNet.Cli.Commands.CliCommandStrings.Designer.cs (1)
1832
typeof(
@CliCommandStrings
).Assembly);
parent\dotnet\CliUsage.cs (45)
13
$@"{
CliCommandStrings
.Usage}: dotnet [runtime-options] [path-to-application] [arguments]
15
{
CliCommandStrings
.ExecutionUsageDescription}
18
--additionalprobingpath <path> {
CliCommandStrings
.AdditionalProbingPathDefinition}
19
--additional-deps <path> {
CliCommandStrings
.AdditionalDeps}
20
--depsfile {
CliCommandStrings
.DepsFileDefinition}
21
--fx-version <version> {
CliCommandStrings
.FxVersionDefinition}
22
--roll-forward <setting> {
CliCommandStrings
.RollForwardDefinition}
23
--runtimeconfig {
CliCommandStrings
.RuntimeConfigDefinition}
26
{
CliCommandStrings
.PathToApplicationDefinition}
28
{
CliCommandStrings
.Usage}: dotnet [sdk-options] [command] [command-options] [arguments]
30
{
CliCommandStrings
.SDKCommandUsageDescription}
34
-h|--help {
CliCommandStrings
.SDKOptionsHelpDefinition}
35
--info {
CliCommandStrings
.SDKInfoCommandDefinition}
36
--list-runtimes {
CliCommandStrings
.SDKListRuntimesCommandDefinition}
37
--list-sdks {
CliCommandStrings
.SDKListSdksCommandDefinition}
38
--version {
CliCommandStrings
.SDKVersionCommandDefinition}
40
{
CliCommandStrings
.Commands}:
41
build {
CliCommandStrings
.BuildDefinition}
42
build-server {
CliCommandStrings
.BuildServerDefinition}
43
clean {
CliCommandStrings
.CleanDefinition}
44
format {
CliCommandStrings
.FormatDefinition}
45
help {
CliCommandStrings
.HelpDefinition}
46
msbuild {
CliCommandStrings
.MsBuildDefinition}
47
new {
CliCommandStrings
.NewDefinition}
48
nuget {
CliCommandStrings
.NugetDefinition}
49
pack {
CliCommandStrings
.PackDefinition}
50
package {
CliCommandStrings
.PackageDefinition}
51
publish {
CliCommandStrings
.PublishDefinition}
52
reference {
CliCommandStrings
.ReferenceDefinition}
53
restore {
CliCommandStrings
.RestoreDefinition}
54
run {
CliCommandStrings
.RunDefinition}
55
sdk {
CliCommandStrings
.SdkDefinition}
56
solution {
CliCommandStrings
.SlnDefinition}
57
store {
CliCommandStrings
.StoreDefinition}
58
test {
CliCommandStrings
.TestDefinition}
59
tool {
CliCommandStrings
.ToolDefinition}
60
vstest {
CliCommandStrings
.VsTestDefinition}
61
workload {
CliCommandStrings
.WorkloadDefinition}
63
{
CliCommandStrings
.AdditionalTools}
64
dev-certs {
CliCommandStrings
.DevCertsDefinition}
65
fsi {
CliCommandStrings
.FsiDefinition}
66
user-jwts {
CliCommandStrings
.UserJwtsDefinition}
67
user-secrets {
CliCommandStrings
.UserSecretsDefinition}
68
watch {
CliCommandStrings
.WatchDefinition}
70
{
CliCommandStrings
.RunDotnetCommandHelpForMore}";
parent\dotnet\Commands\Run\AotRunCommand.cs (4)
191
Reporter.Output.WriteLine(
CliCommandStrings
.RunCommandBuilding);
285
CliCommandStrings
.RunCommandExceptionCouldNotApplyLaunchSettings,
389
throw new GracefulException(
CliCommandStrings
.RunCommandExceptionNoProjects, currentDirectory, "--project");
420
throw new GracefulException(
CliCommandStrings
.RunCommandExceptionNoProjects, currentDirectory, "--project");
parent\dotnet\Commands\Run\CommonRunHelpers.cs (2)
40
? throw new GracefulException(
CliCommandStrings
.RunCommandExceptionMultipleProjects, directory)
169
report(string.Format(
CliCommandStrings
.UsingLaunchSettingsFromMessage, launchSettingsPath), true);
parent\dotnet\Commands\Sdk\Check\ProductCollectionProvider.cs (1)
31
throw new GracefulException(string.Format(
CliCommandStrings
.ReleasesLibraryFailed, e.Message));
parent\dotnet\Commands\Sdk\Check\RuntimeOutputWriter.cs (9)
21
_reporter.WriteLine(
CliCommandStrings
.RuntimeSectionHeader);
24
table.AddColumn(
CliCommandStrings
.NameColumnHeader, runtime => runtime.Name.ToString());
25
table.AddColumn(
CliCommandStrings
.VersionColumnHeader, runtime => runtime.Version.ToString());
26
table.AddColumn(
CliCommandStrings
.StatusColumnHeader, runtime => GetRuntimeStatusMessage(runtime));
40
return string.Format(
CliCommandStrings
.OutOfSupportMessage, $"{runtime.Version.Major}.{runtime.Version.Minor}");
44
return string.Format(
CliCommandStrings
.MaintenanceMessage, $"{runtime.Version.Major}.{runtime.Version.Minor}");
48
return string.Format(
CliCommandStrings
.NewPatchAvailableMessage, NewestRuntimePatchVersion(runtime));
52
return
CliCommandStrings
.BundleUpToDateMessage;
56
return
CliCommandStrings
.VersionCheckFailure;
parent\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (3)
66
_reporter.WriteLine(
CliCommandStrings
.CommandFooter);
74
throw new GracefulException([
CliCommandStrings
.RuntimePropertyNotFound], [], isUserError: false);
77
throw new GracefulException([
CliCommandStrings
.HostFxrCouldNotBeLoaded], [hostFxrNotFoundException.Message], isUserError: false);
parent\dotnet\Commands\Sdk\Check\SdkOutputWriter.cs (9)
21
_reporter.WriteLine(
CliCommandStrings
.SdkSectionHeader);
24
table.AddColumn(
CliCommandStrings
.VersionColumnHeader, sdk => sdk.Version.ToString());
25
table.AddColumn(
CliCommandStrings
.StatusColumnHeader, sdk => GetSdkStatusMessage(sdk));
33
_reporter.WriteLine(string.Format(
CliCommandStrings
.NewFeatureBandMessage, NewestFeatureBandAvailable()));
44
return string.Format(
CliCommandStrings
.OutOfSupportMessage, $"{sdk.Version.Major}.{sdk.Version.Minor}");
48
return string.Format(
CliCommandStrings
.MaintenanceMessage, $"{sdk.Version.Major}.{sdk.Version.Minor}");
52
return string.Format(
CliCommandStrings
.NewPatchAvailableMessage, NewestSdkPatchVersion(sdk));
56
return
CliCommandStrings
.BundleUpToDateMessage;
60
return
CliCommandStrings
.VersionCheckFailure;
parent\dotnet\Commands\Solution\List\SolutionListCommand.cs (2)
68
string header = _displaySolutionFolders ?
CliCommandStrings
.SolutionFolderHeader :
CliCommandStrings
.ProjectsHeader;
parent\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (2)
31
throw new GracefulException(
CliCommandStrings
.CannotMigrateSlnx);
49
_reporter.WriteLine(
CliCommandStrings
.SlnxGenerated, slnxFilePath);
parent\dotnet\Commands\Solution\SolutionArgumentValidator.cs (1)
32
throw new GracefulException(
CliCommandStrings
.SolutionFolderAndInRootMutuallyExclusive);
parent\dotnet\Commands\Test\MTP\ArtifactPostProcessingManager.cs (6)
122
CliCommandStrings
.ArtifactPostProcessingUnexpectedFailure,
162
output.WriteInformationMessage(
CliCommandStrings
.ArtifactPostProcessingStarted);
221
invocation.RecordFailure(
CliCommandStrings
.ArtifactPostProcessingConnectionFailed);
235
CliCommandStrings
.ArtifactPostProcessingFailed,
243
CliCommandStrings
.ArtifactPostProcessingProcessFailed,
257
CliCommandStrings
.ArtifactPostProcessingFailed,
parent\dotnet\Commands\Test\MTP\InvocationLifetimeCoordinator.cs (14)
255
Fail(AppendDetails(string.Format(
CliCommandStrings
.InvocationLifetimeSetupFailed, _ownerName), message.ErrorMessage), abortOwner: false);
313
Fail(string.Format(
CliCommandStrings
.InvocationLifetimeOwnerControlLost, _ownerName), abortOwner: false, abortSiblings: false);
328
_reportError(string.Format(
CliCommandStrings
.InvocationLifetimeSiblingProtocolTooOld, sibling.TargetPath));
360
Fail(string.Format(
CliCommandStrings
.InvocationLifetimeOwnerExitedBeforeSetup, _ownerName), abortOwner: false);
366
Fail(string.Format(
CliCommandStrings
.InvocationLifetimeOwnerExitedBeforeCleanup, _ownerName), abortOwner: false);
474
_reportError(AppendDetails(string.Format(
CliCommandStrings
.InvocationLifetimeCleanupFailed, _ownerName), message.ErrorMessage));
480
_reportError(string.Format(
CliCommandStrings
.InvocationLifetimeOwnerExitedBeforeCleanup, _ownerName));
485
CliCommandStrings
.InvocationLifetimeCleanupTimedOut,
499
CliCommandStrings
.InvocationLifetimeOwnerShutdownTimedOut,
511
_reportError(string.Format(
CliCommandStrings
.InvocationLifetimeOwnerUnexpectedExitCode, _ownerName, exitCode));
520
_reportError(string.Format(
CliCommandStrings
.InvocationLifetimeOwnerExitedBeforeCleanup, _ownerName));
549
CliCommandStrings
.InvocationLifetimeOwnerHandshakeTimedOut,
557
CliCommandStrings
.InvocationLifetimeSetupTimedOut,
582
Fail(string.Format(
CliCommandStrings
.InvocationLifetimeUnexpectedMessage, _ownerName, messageName), abortOwner: true);
parent\dotnet\Commands\Test\MTP\IPC\NamedPipeBase.cs (2)
32
CliCommandStrings
.NoSerializerRegisteredWithIdErrorMessage,
43
CliCommandStrings
.NoSerializerRegisteredWithTypeErrorMessage,
parent\dotnet\Commands\Test\MTP\IPC\NamedPipeServer.cs (1)
346
throw new InvalidOperationException(
CliCommandStrings
.InternalLoopAsyncDidNotExitSuccessfullyErrorMessage);
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (6)
388
CliCommandStrings
.CmdAffectedTestsFeatureDisabled,
394
throw new GracefulException(
CliCommandStrings
.CmdAffectedTestsOptionsMutuallyExclusive);
399
throw new GracefulException(
CliCommandStrings
.CmdCollectTestMapCannotRunModulesInParallel);
405
throw new GracefulException(
CliCommandStrings
.CmdCollectTestMapCannotRequireMinimumTests);
448
throw new GracefulException(
CliCommandStrings
.CmdAffectedTestsResponseFilesMustBeConsistent);
461
throw new GracefulException(
CliCommandStrings
.CmdAffectedTestsResponseFilesMustBeConsistent);
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (13)
23
Console.WriteLine(
CliCommandStrings
.HelpWaitingForOptionsAndExtensions);
54
context.Output.WriteLine(
CliCommandStrings
.CmdHelpUsageTitle);
76
yield return FormatHelpOption(
CliCommandStrings
.HelpOptions);
81
yield return FormatHelpOption(
CliCommandStrings
.HelpPlatformOptions);
86
yield return FormatHelpOption(
CliCommandStrings
.HelpExtensionOptions);
215
WriteOtherOptionsSection(context,
CliCommandStrings
.HelpPlatformOptions, builtInOptions);
221
WriteOtherOptionsSection(context,
CliCommandStrings
.HelpExtensionOptions, nonBuiltInOptions);
262
Utils.Reporter.Output.WriteLine((groupedModules.Key ?
CliCommandStrings
.HelpUnavailableOptions :
CliCommandStrings
.HelpUnavailableExtensionOptions).Yellow());
282
? (missingOptions.Length == 1 ?
CliCommandStrings
.HelpModuleIsMissingTheOptionBelow :
CliCommandStrings
.HelpModuleIsMissingTheOptionsBelow)
283
: (missingOptions.Length == 1 ?
CliCommandStrings
.HelpModulesAreMissingTheOptionBelow :
CliCommandStrings
.HelpModulesAreMissingTheOptionsBelow);
parent\dotnet\Commands\Test\MTP\Terminal\AnsiTerminal.cs (1)
155
throw new InvalidOperationException(
CliCommandStrings
.ConsoleIsAlreadyInBatchingMode);
parent\dotnet\Commands\Test\MTP\Terminal\SilenceDrivenHeartbeatRenderer.cs (5)
107
string line = string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.TerminalProgressHeartbeat, completed, failed, activeModules);
110
?
CliCommandStrings
.TerminalProgressHeartbeatNoCompletionSuffix
112
CultureInfo.CurrentCulture,
CliCommandStrings
.TerminalProgressHeartbeatLastCompletionSuffix,
116
line += string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.TerminalProgressHeartbeatActiveSuffix, activeTest);
190
CultureInfo.CurrentCulture,
CliCommandStrings
.TerminalProgressSlowTest,
parent\dotnet\Commands\Test\MTP\Terminal\SimpleTerminalBase.cs (1)
162
throw new InvalidOperationException(
CliCommandStrings
.ConsoleIsAlreadyInBatchingMode);
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.Collection.cs (11)
30
WriteInformationMessage(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.TestMapCollectionStarted, moduleCount));
85
CultureInfo.CurrentCulture,
CliCommandStrings
.TestMapCollectionProgress,
87
_collectionActiveModule ??
CliCommandStrings
.TestMapCollectionWaiting));
106
?
CliCommandStrings
.TestMapCollectionAborted
108
?
CliCommandStrings
.TestMapCollectionCompleted
109
:
CliCommandStrings
.TestMapCollectionFailed);
112
CultureInfo.CurrentCulture,
CliCommandStrings
.TestMapCollectionModules,
114
terminal.AppendLine(
CliCommandStrings
.TestMapCollectionNoTestVerdict);
115
terminal.Append($"{SingleIndentation}{
CliCommandStrings
.DurationColon} ");
148
CultureInfo.CurrentCulture,
CliCommandStrings
.ArtifactReportingDegraded,
162
CultureInfo.CurrentCulture,
CliCommandStrings
.IncompleteLiveTestResults,
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.Coverage.cs (21)
84
WriteWarningMessage(
CliCommandStrings
.InvalidCoverageSummary);
110
WriteWarningMessage(
CliCommandStrings
.InvalidCoverageSummary);
227
rows.AddRange(completeMerges[0].Summaries.Select(summary => (
CliCommandStrings
.CoverageScopeOverall, summary)));
235
?
CliCommandStrings
.CoverageScopeOverall
243
string scope = string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.CoverageMergedArtifact, summary.Path);
258
terminal.Append($"##[group]{
CliCommandStrings
.CodeCoverageSummary}");
263
if (scope ==
CliCommandStrings
.CoverageScopeOverall &&
276
terminal.AppendLine($"{SingleIndentation}{
CliCommandStrings
.CodeCoverageSummary}");
285
CultureInfo.CurrentCulture,
CliCommandStrings
.CoverageMetricWithProducer,
301
:
CliCommandStrings
.CoverageNoData;
377
CoverageMetric.Line =>
CliCommandStrings
.CoverageMetricLine,
378
CoverageMetric.Statement =>
CliCommandStrings
.CoverageMetricStatement,
379
CoverageMetric.Branch =>
CliCommandStrings
.CoverageMetricBranch,
380
CoverageMetric.Method =>
CliCommandStrings
.CoverageMetricMethod,
381
CoverageMetric.Function =>
CliCommandStrings
.CoverageMetricFunction,
382
CoverageMetric.Block =>
CliCommandStrings
.CoverageMetricBlock,
383
CoverageMetric.Instruction =>
CliCommandStrings
.CoverageMetricInstruction,
384
CoverageMetric.Region =>
CliCommandStrings
.CoverageMetricRegion,
385
CoverageMetric.Class =>
CliCommandStrings
.CoverageMetricClass,
386
CoverageMetric.Condition =>
CliCommandStrings
.CoverageMetricCondition,
387
CoverageMetric.Complexity =>
CliCommandStrings
.CoverageMetricComplexity,
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (89)
213
terminal.Append(
CliCommandStrings
.SkippedLowercase);
216
terminal.Append(
CliCommandStrings
.NoAffectedTestsSelected);
221
terminal.AppendLine(
CliCommandStrings
.NoAffectedTestsSelected);
283
terminal.Append($"({string.Format(
CliCommandStrings
.Try, currentAttemptNumber)}) ");
287
terminal.Append(_isDiscovery ?
CliCommandStrings
.DiscoveringTestsFrom :
CliCommandStrings
.RunningTestsFrom);
459
terminal.Append($"##[group]{
CliCommandStrings
.TestRunSummary}");
465
terminal.Append($" {passed} {
CliCommandStrings
.PassedLowercase}, {failed} {
CliCommandStrings
.FailedLowercase}");
469
terminal.Append($"{(hasModuleTotals ? "," : string.Empty)} {unselected.Length} {
CliCommandStrings
.SkippedLowercase} ({
CliCommandStrings
.NoAffectedTestsSelected})");
498
terminal.AppendLine(string.Format(CultureInfo.CurrentCulture, "##[group]" +
CliCommandStrings
.ArtifactCount, artifactCount));
525
string heading = artifactGroup.Key ?
CliCommandStrings
.OutOfProcessArtifactsProduced :
CliCommandStrings
.InProcessArtifactsProduced;
533
terminal.Append(
CliCommandStrings
.ForTest);
609
string errorText = $"{SingleIndentation}{
CliCommandStrings
.ErrorColon} {error}";
610
string totalText = $"{SingleIndentation}{
CliCommandStrings
.TotalColon} {total}";
611
string failedText = $"{SingleIndentation}{
CliCommandStrings
.FailedColon} {failed}";
612
string passedText = $"{SingleIndentation}{
CliCommandStrings
.SucceededColon} {passed}";
613
string skippedText = $"{SingleIndentation}{
CliCommandStrings
.SkippedColon} {skipped}";
614
string durationText = $"{SingleIndentation}{
CliCommandStrings
.DurationColon} ";
677
terminal.Append(
CliCommandStrings
.TestRunSummary);
683
?
CliCommandStrings
.ZeroTestsRan
684
: string.Format(CultureInfo.CurrentCulture, "{0}!",
CliCommandStrings
.Passed));
688
terminal.Append(
CliCommandStrings
.Aborted);
692
terminal.Append(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.MinimumExpectedTestsPolicyViolation, totalTests, _options.MinimumExpectedTests));
696
terminal.Append(
CliCommandStrings
.ZeroTestsRan);
700
terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!",
CliCommandStrings
.Failed));
750
terminal.AppendLine($"{SingleIndentation}{string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.FlakyLowercase, flakyTests)}");
757
terminal.Append($"{SingleIndentation}{
CliCommandStrings
.RetriedColon} ");
758
terminal.AppendLine(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.RetriedTestsAndRuns, retriedTests, retriedExecutions));
791
terminal.AppendLine(
CliCommandStrings
.FlakyTests);
817
terminal.AppendLine(
CliCommandStrings
.FlakyTests);
830
terminal.Append(
CliCommandStrings
.FlakyTransition);
832
terminal.Append(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.FlakyAttempts, attempts));
860
terminal.AppendLine(
CliCommandStrings
.SlowestTests);
888
terminal.AppendLine(
CliCommandStrings
.SlowestTests);
918
terminal.AppendLine(
CliCommandStrings
.HandshakeFailuresHeader);
949
isRun ?
CliCommandStrings
.TestRunExitCode :
CliCommandStrings
.TestDiscoveryExitCode,
957
ExitCode.GenericFailure =>
CliCommandStrings
.ExitCodeGenericFailureDescription,
958
ExitCode.AtLeastOneTestFailed =>
CliCommandStrings
.ExitCodeAtLeastOneTestFailedDescription,
959
ExitCode.TestSessionAborted =>
CliCommandStrings
.ExitCodeTestSessionAbortedDescription,
960
ExitCode.InvalidPlatformSetup =>
CliCommandStrings
.ExitCodeInvalidPlatformSetupDescription,
961
ExitCode.InvalidCommandLine =>
CliCommandStrings
.ExitCodeInvalidCommandLineDescription,
962
ExitCode.TestHostProcessExitedNonGracefully =>
CliCommandStrings
.ExitCodeTestHostProcessExitedNonGracefullyDescription,
963
ExitCode.ZeroTests =>
CliCommandStrings
.ExitCodeZeroTestsDescription,
964
ExitCode.MinimumExpectedTestsPolicyViolation =>
CliCommandStrings
.ExitCodeMinimumExpectedTestsPolicyViolationDescription,
965
ExitCode.TestAdapterTestSessionFailure =>
CliCommandStrings
.ExitCodeTestAdapterTestSessionFailureDescription,
966
ExitCode.DependentProcessExited =>
CliCommandStrings
.ExitCodeDependentProcessExitedDescription,
967
ExitCode.IncompatibleProtocolVersion =>
CliCommandStrings
.ExitCodeIncompatibleProtocolVersionDescription,
968
ExitCode.TestExecutionStoppedForMaxFailedTests =>
CliCommandStrings
.ExitCodeTestExecutionStoppedForMaxFailedTestsDescription,
969
ExitCode.CoverageThresholdFailed =>
CliCommandStrings
.ExitCodeCoverageThresholdFailedDescription,
970
ExitCode.TestExecutionStoppedAtDeadline =>
CliCommandStrings
.ExitCodeTestExecutionStoppedAtDeadlineDescription,
971
_ =>
CliCommandStrings
.ExitCodeUnknownDescription,
982
terminal.Append(_options.AllowZeroTests ?
CliCommandStrings
.PassedLowercase :
CliCommandStrings
.ZeroTestsRan);
989
? string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.FailedWithErrors, state.FailedTests)
990
:
CliCommandStrings
.FailedLowercase;
997
terminal.Append(
CliCommandStrings
.PassedLowercase);
1119
TestOutcome.Fail or TestOutcome.Error =>
CliCommandStrings
.FailedLowercase,
1120
TestOutcome.Skipped =>
CliCommandStrings
.SkippedLowercase,
1121
TestOutcome.Canceled or TestOutcome.Timeout => $"{
CliCommandStrings
.FailedLowercase} ({
CliCommandStrings
.CancelledLowercase})",
1122
TestOutcome.Passed =>
CliCommandStrings
.PassedLowercase,
1136
terminal.Append($" ({string.Format(
CliCommandStrings
.Try, attempt)})");
1159
terminal.Append(
CliCommandStrings
.FromFile);
1231
terminal.AppendLine(
CliCommandStrings
.Expected);
1234
terminal.AppendLine(
CliCommandStrings
.Actual);
1269
terminal.AppendLine(
CliCommandStrings
.StandardOutput);
1276
terminal.AppendLine(
CliCommandStrings
.StandardError);
1362
terminal.Append(
CliCommandStrings
.StackFrameAt);
1377
terminal.Append(
CliCommandStrings
.StackFrameIn);
1520
terminal.Append(_options.CollectTestMap ?
CliCommandStrings
.TestMapCollectionFailed :
CliCommandStrings
.ZeroTestsRan);
1529
terminal.Append(
CliCommandStrings
.ExitCode);
1532
AppendOutputWhenPresent(
CliCommandStrings
.StandardOutput, TruncateOutputForSummary(outputData));
1533
AppendOutputWhenPresent(
CliCommandStrings
.StandardError, errorData);
1574
builder.AppendLine(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.TestApplicationOutputTruncated, omitted));
1621
AppendCount(state.PassedTests,
CliCommandStrings
.PassedLowercase, TerminalColor.DarkGreen);
1623
AppendCount(state.FailedTests,
CliCommandStrings
.FailedLowercase, TerminalColor.DarkRed);
1625
AppendCount(state.SkippedTests,
CliCommandStrings
.SkippedLowercase, TerminalColor.DarkYellow);
1629
terminal.Append(
CliCommandStrings
.RetriedColon);
1853
terminal.AppendLine(
CliCommandStrings
.CancellingTestSession);
1854
terminal.AppendLine(
CliCommandStrings
.PressCtrlCAgainToForceExit);
1901
terminal.Append(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.DiscoveredTestsInAssembly, discoveredTestNames.Count));
1934
terminal.AppendLine(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.TestDiscoverySummarySingular, totalTests));
1938
terminal.AppendLine(string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.TestDiscoverySummary, totalTests, assemblies.Count));
1946
terminal.Append(
CliCommandStrings
.Aborted);
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.ErroredAssemblies.cs (1)
39
terminal.AppendLine(
CliCommandStrings
.ErroredAssembliesHeader);
parent\dotnet\Commands\Test\MTP\Terminal\TestFrameworkDisplay.cs (1)
36
string runtime = string.Format(CultureInfo.CurrentCulture,
CliCommandStrings
.RuntimeFramework, runtimeFramework);
parent\dotnet\Commands\Test\MTP\Terminal\TestNodeResultsState.cs (2)
98
_cachedFullTestsText = string.Format(culture,
CliCommandStrings
.ActiveTestsRunning_FullTestsCount, count);
115
_cachedMoreTestsText = $"... {string.Format(culture,
CliCommandStrings
.ActiveTestsRunning_MoreTestsCount, count)}";
parent\dotnet\Commands\Test\MTP\TestApplication.cs (9)
108
throw new InvalidOperationException(
CliCommandStrings
.RunAsyncCalledMoreThanOnce);
240
throw new InvalidOperationException(
CliCommandStrings
.MissingTestSessionEnd);
861
throw new NotSupportedException(string.Format(
CliCommandStrings
.CmdUnsupportedMessageRequestTypeException, request.GetType()));
975
Reporter.Error.WriteLine(string.Format(
CliCommandStrings
.InvocationLifetimeSiblingProtocolTooOld, Module.TargetPath).Red());
1004
throw new InvalidOperationException(
CliCommandStrings
.DotnetTestDuplicateHandshakeOnConnection);
1115
throw new NotSupportedException(string.Format(
CliCommandStrings
.CmdUnsupportedMessageRequestTypeException, request.GetType()));
1290
throw new InvalidOperationException(
CliCommandStrings
.UnexpectedHelpMessage);
1488
messageBuilder = new StringBuilder(
CliCommandStrings
.DotnetTestPipeFailureHasHandshake);
1497
messageBuilder = new StringBuilder(
CliCommandStrings
.DotnetTestPipeFailureWithoutHandshake);
parent\dotnet\Commands\Test\MTP\TestApplicationActionQueue.cs (6)
90
Reporter.Output.WriteLine(
CliCommandStrings
.InvocationLifetimeNoBuild.Yellow());
99
Reporter.Output.WriteLine(
CliCommandStrings
.InvocationLifetimeNoDependencies.Yellow());
110
Reporter.Output.WriteLine(
CliCommandStrings
.InvocationLifetimeOwnerAmbiguous.Yellow());
115
CliCommandStrings
.InvocationLifetimeOwnerUnsupportedTransport,
121
CliCommandStrings
.InvocationLifetimeUnsupportedParticipant,
264
Reporter.Error.WriteLine(string.Format(
CliCommandStrings
.ErrorRunningTestModule, module.RunProperties?.Command, module.RunProperties?.Arguments, exAsString));
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (36)
79
? string.Format(
CliCommandStrings
.DotnetTestIncompatibleHandshakeVersion, supportedProtocolVersions, ProtocolConstants.SupportedVersions)
80
: string.Format(
CliCommandStrings
.DotnetTestMissingHandshakeProtocolVersions, ProtocolConstants.SupportedVersions);
107
CliCommandStrings
.MismatchingHandshakeHostType,
129
ReportHandshakeFailure(string.Format(
CliCommandStrings
.MismatchingHandshakeInfo, currentHandshakeInfo, _handshakeInfo.Value));
181
ReportHandshakeFailure(string.Format(
CliCommandStrings
.MismatchingHandshakeExecutionMode, executionMode, expectedExecutionMode));
293
CliCommandStrings
.DotnetTestMissingRequiredMessageProperty,
304
CliCommandStrings
.DotnetTestMissingRequiredMessageProperty,
342
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageInHelpMode, nameof(DiscoveredTestMessages)));
347
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutHandshake, nameof(DiscoveredTestMessages)));
354
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutTestHostHandshake, nameof(DiscoveredTestMessages)));
365
throw new InvalidOperationException(string.Format(
CliCommandStrings
.DotnetTestMismatchingExecutionId, executionId, nameof(DiscoveredTestMessages), _handshakeInfo.Value.ExecutionId));
390
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageInHelpMode, nameof(TestResultMessages)));
395
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutHandshake, nameof(TestResultMessages)));
400
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutTestHostHandshake, nameof(TestResultMessages)));
411
throw new InvalidOperationException(string.Format(
CliCommandStrings
.DotnetTestMismatchingExecutionId, messageExecutionId, nameof(TestResultMessages), _handshakeInfo.Value.ExecutionId));
461
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageInHelpMode, nameof(TestInProgressMessages)));
466
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutHandshake, nameof(TestInProgressMessages)));
471
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutTestHostHandshake, nameof(TestInProgressMessages)));
482
throw new InvalidOperationException(string.Format(
CliCommandStrings
.DotnetTestMismatchingExecutionId, executionId, nameof(TestInProgressMessages), _handshakeInfo.Value.ExecutionId));
510
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageInHelpMode, nameof(FileArtifactMessages)));
515
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutHandshake, nameof(FileArtifactMessages)));
522
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutTestHostHandshake, nameof(FileArtifactMessages)));
533
throw new InvalidOperationException(string.Format(
CliCommandStrings
.DotnetTestMismatchingExecutionId, fileArtifactExecutionId, nameof(FileArtifactMessages), _handshakeInfo.Value.ExecutionId));
579
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageInHelpMode, nameof(CoverageSummaryMessages)));
584
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutHandshake, nameof(CoverageSummaryMessages)));
589
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutTestHostHandshake, nameof(CoverageSummaryMessages)));
597
CliCommandStrings
.DotnetTestMismatchingExecutionId, executionId, nameof(CoverageSummaryMessages), _handshakeInfo.Value.ExecutionId));
602
_output.WriteWarningMessage(
CliCommandStrings
.UnnegotiatedCoverageSummary);
617
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageInHelpMode, nameof(TestSessionEvent)));
622
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnexpectedMessageWithoutHandshake, nameof(TestSessionEvent)));
633
throw new InvalidOperationException(string.Format(
CliCommandStrings
.DotnetTestMismatchingExecutionId, sessionExecutionId, nameof(TestSessionEvent), _handshakeInfo.Value.ExecutionId));
639
CliCommandStrings
.DotnetTestMissingRequiredMessageProperty,
659
throw new InvalidOperationException(
CliCommandStrings
.UnexpectedTestSessionEnd);
666
throw new InvalidOperationException(string.Format(
CliCommandStrings
.UnknownSessionEventType, sessionEvent.SessionType));
811
WriteModuleMessage(
CliCommandStrings
.TestApplicationOutputStreamTimeout);
843
_artifactPostProcessingInvocation?.RecordFailure(
CliCommandStrings
.ArtifactPostProcessingMissingHandshake);
parent\dotnet\Commands\Test\MTP\TestModulesFilterHandler.cs (2)
48
Reporter.Output.WriteLine(string.Format(
CliCommandStrings
.CmdNonExistentRootDirectoryErrorDescription, _testModulesRoot).Yellow());
55
Reporter.Output.WriteLine(string.Format(
CliCommandStrings
.CmdNoTestModulesErrorDescription, _testModules, _testModulesRoot).Yellow());
parent\dotnet\Commands\Tool\Common\ToolManifestFinderExtensions.cs (2)
32
throw new GracefulException([e.Message,
CliCommandStrings
.ToolCommonNoManifestGuide], verboseMessages: [e.VerboseMessage], isUserError: false);
42
CliCommandStrings
.SamePackageIdInOtherManifestFile,
parent\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (4)
66
CliCommandStrings
.ToolListPackageIdColumn,
69
CliCommandStrings
.ToolListVersionColumn,
72
CliCommandStrings
.ToolListCommandsColumn,
75
CliCommandStrings
.ManifestFileColumn,
parent\dotnet\Commands\Tool\Run\ToolRunCommand.cs (1)
51
throw new GracefulException([string.Format(
CliCommandStrings
.CannotFindCommandName, toolCommandName)], isUserError: false);
parent\dotnet\Commands\Tool\Search\SearchResultPrinter.cs (18)
17
_reporter.WriteLine($"{
CliCommandStrings
.SourceArgumentName}: {source.Source}".Bold());
22
_errorReporter.WriteLine($"{
CliCommandStrings
.SourceArgumentName}: {source.Source}".Bold());
33
_errorReporter.WriteLine(
CliCommandStrings
.ToolSearchNoSourcesConfigured);
40
_reporter.WriteLine(
CliCommandStrings
.NoResult);
48
CliCommandStrings
.PackageId,
51
CliCommandStrings
.LatestVersion,
54
CliCommandStrings
.Authors,
57
CliCommandStrings
.Downloads,
60
CliCommandStrings
.Verified,
71
_reporter.WriteLine($"{
CliCommandStrings
.LatestVersion}: ".Bold() + p.LatestVersion);
74
_reporter.WriteLine($"{
CliCommandStrings
.Authors}: ".Bold() + string.Join(", ", p.Authors));
79
_reporter.WriteLine($"{
CliCommandStrings
.Tags}: ".Bold() + string.Join(", ", p.Tags));
82
_reporter.WriteLine($"{
CliCommandStrings
.Downloads}: ".Bold() + p.TotalDownloads);
85
_reporter.WriteLine($"{
CliCommandStrings
.Verified}: ".Bold() + p.Verified.ToString());
89
_reporter.WriteLine($"{
CliCommandStrings
.Summary}: ".Bold() + p.Summary);
94
_reporter.WriteLine($"{
CliCommandStrings
.Description}: ".Bold() + p.Description);
99
_reporter.WriteLine($"{
CliCommandStrings
.Versions}: ".Bold());
103
$"\t{version.Version}" + $" {
CliCommandStrings
.Downloads}: ".Bold() + version.Downloads);
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
48
throw new GracefulException([string.Format(
CliCommandStrings
.NoManifestFileContainPackageId, _packageId)], isUserError: false);
62
CliCommandStrings
.UninstallLocalToolSucceeded,
parent\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (3)
251
_reporter.WriteLine(
CliCommandStrings
.AdManifestUpdated, manifestId);
260
_reporter.WriteLine(
CliCommandStrings
.FailedAdManifestUpdate, manifestId, e.Message);
306
_reporter.WriteLine(
CliCommandStrings
.AdManifestPackageDoesNotExist, manifest.Id);
parent\dotnet\Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
58
throw new InvalidOperationException(
CliCommandStrings
.OSDoesNotSupportMsi);
109
Console.WriteLine(
CliCommandStrings
.WorkloadInstallWorkloadUpdatesAvailable);
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (10)
157
return versionInfo.Version + (versionInfo.IsInstalled ? string.Empty : ' ' +
CliCommandStrings
.WorkloadVersionNotInstalledShort);
169
?
CliCommandStrings
.WorkloadManifestInstallationConfigurationWorkloadSets
170
:
CliCommandStrings
.WorkloadManifestInstallationConfigurationLooseManifests;
175
reporter.WriteLine(indent + string.Format(
CliCommandStrings
.WorkloadSetFromGlobalJsonNotInstalled, versionInfo.Version, versionInfo.GlobalJsonPath));
179
reporter.WriteLine(indent +
CliCommandStrings
.ShouldInstallAWorkloadSet);
199
reporter.WriteLine(
CliCommandStrings
.NoWorkloadsInstalledInfoWarning);
215
reporter.Write($"{separator}{
CliCommandStrings
.WorkloadSourceColumn}:");
218
reporter.Write($"{separator}{
CliCommandStrings
.WorkloadManifestVersionColumn}:");
221
reporter.Write($"{separator}{
CliCommandStrings
.WorkloadManifestPathColumn}:");
224
reporter.Write($"{separator}{
CliCommandStrings
.WorkloadInstallTypeColumn}:");
parent\dotnet\NugetSearch\NugetToolSearchApiRequest.cs (1)
54
string.Format(
CliCommandStrings
.ToolSearchSourceDoesNotSupportPackageTypeFiltering, source.Source));