110 references to Red
dotnet (35)
CommandFactory\CommandResolution\ProjectFactory.cs (1)
60
Reporter.Verbose.WriteLine(ex.ToString().
Red
());
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (3)
136
exception.InnerException.Message).
Red
());
144
exception.InnerException.Message).
Red
());
149
Reporter.Verbose.WriteLine(exception.ToString().
Red
());
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (1)
41
Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsErrorRemovingFolder, folder, ex.Message).
Red
());
Commands\Help\HelpCommand.cs (1)
100
helpArgs).
Red
());
Commands\Run\CSharpCompilerCommand.cs (1)
141
Reporter.Error.WriteLine("Error: Compiler server reports a different hash version than the SDK.".
Red
());
Commands\Run\RunCommand.cs (4)
236
Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName, applyResult.FailureReason).Bold().
Red
());
245
Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName).Bold().
Red
());
246
Reporter.Error.WriteLine(ex.Message.Bold().
Red
());
297
""").Bold().
Red
());
Commands\Run\VirtualProjectBuildingCommand.cs (2)
382
e.ToString().
Red
().Bold() :
383
e.Message.
Red
().Bold());
Commands\Test\MTP\MSBuildHandler.cs (1)
115
string.Join(Environment.NewLine, vsTestTestProjects.Select(module => Path.GetFileName(module.ProjectFullPath))).
Red
().Bold()));
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
404
Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName, result.FailureReason).Bold().
Red
());
Commands\Tool\Execute\ToolExecuteCommand.cs (3)
74
Reporter.Error.WriteLine(restoreResult.Message.
Red
());
103
Reporter.Error.WriteLine(CliCommandStrings.ToolDownloadCanceled.
Red
().Bold());
108
Reporter.Error.WriteLine(CliCommandStrings.ToolDownloadNeedsConfirmation.
Red
().Bold());
Commands\Tool\Install\ProjectRestorer.cs (1)
93
line = line.
Red
();
Commands\Tool\Restore\ToolRestoreCommand.cs (2)
138
toolRestoreResults.Where(r => !r.IsSuccess).Select(r => r.Message)).
Red
());
151
: CliCommandStrings.RestoreFailed).
Red
());
Extensions\ParseResultExtensions.cs (1)
113
Reporter.Error.WriteLine(CliStrings.RequiredCommandNotPassed.
Red
());
Parser.cs (9)
270
exception.ToString().
Red
().Bold() :
271
exception.Message.
Red
().Bold());
276
exception.ToString().
Red
().Bold() :
277
exception.Message.
Red
().Bold());
283
exception.ToString().
Red
().Bold() :
284
exception.Message.
Red
().Bold());
288
Reporter.Error.Write("Unhandled exception: ".
Red
().Bold());
290
exception.ToString().
Red
().Bold() :
291
exception.Message.
Red
().Bold());
Program.cs (4)
86
? e.ToString().
Red
().Bold()
87
: e.Message.
Red
().Bold());
101
Reporter.Error.WriteLine(e.ToString().
Red
().Bold());
282
Reporter.Error.WriteLine(e.Message.
Red
());
dotnet.Tests (2)
CommandTests\BuildServer\Shutdown\BuildServerShutdownCommandTests.cs (2)
260
return string.Format(CliCommandStrings.ShutDownFailedWithPid, server.Name, server.ProcessId, message).
Red
();
262
return string.Format(CliCommandStrings.ShutDownFailed, server.Name, message).
Red
();
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
85
Reporter.Verbose.WriteLine(message.
Red
().Bold());
Microsoft.TemplateEngine.Cli (72)
Commands\BaseCommand.cs (3)
257
Reporter.Error.WriteLine(ex.Message.Bold().
Red
());
270
Reporter.Error.WriteLine(ex.Message.Bold().
Red
());
275
Reporter.Error.WriteLine(ex.StackTrace.Bold().
Red
());
Commands\create\InstantiateCommand.cs (8)
125
string.Format(LocalizableStrings.InstantiateCommand_Info_NoMatchingTemplatesSubCommands, instantiateArgs.ShortName).Bold().
Red
());
143
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().
Red
());
157
reporter.WriteLine(formatter.Layout().Bold().
Red
());
158
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().
Red
());
325
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().
Red
());
341
reporter.WriteLine(formatter.Layout().Bold().
Red
());
343
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().
Red
());
349
reporter.WriteLine(string.Format(LocalizableStrings.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().
Red
());
Commands\create\InstantiateCommand.NoMatchHandling.cs (3)
141
reporter.WriteLine(InvalidOptionsListToString(invalidOptionsList, matchInfos).Bold().
Red
());
146
reporter.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().
Red
());
196
Reporter.Error.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().
Red
());
PostActionDispatcher.cs (2)
189
Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().
Red
());
256
stream.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().
Red
());
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (1)
24
Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().
Red
());
TemplateInvoker.cs (17)
67
Reporter.Error.WriteLine(cx.Message.Bold().
Red
());
70
Reporter.Error.WriteLine(cx.InnerException.Message.Bold().
Red
());
78
Reporter.Error.WriteLine(ex.Message.Bold().
Red
());
137
Reporter.Error.WriteLine(string.Format(LocalizableStrings.InvalidNameParameter, printableChars, nonPrintableChars).Bold().
Red
());
179
Reporter.Error.WriteLine(cx.Message.Bold().
Red
());
182
Reporter.Error.WriteLine(cx.InnerException.Message.Bold().
Red
());
189
Reporter.Error.WriteLine(tae.Message.Bold().
Red
());
222
Reporter.Error.WriteLine(string.Format(LocalizableStrings.CreateFailed, resultTemplateName, instantiateResult.ErrorMessage).Bold().
Red
());
233
Reporter.Error.WriteLine(string.Format(LocalizableStrings.MissingRequiredParameter, fixedMessage, resultTemplateName).Bold().
Red
());
237
Reporter.Error.WriteLine(LocalizableStrings.TemplateCreator_Error_TemplateNotFound.Bold().
Red
());
266
Reporter.Error.WriteLine($"{LocalizableStrings.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().
Red
());
275
Reporter.Error.WriteLine(LocalizableStrings.DestructiveChangesNotification.Bold().
Red
());
284
Reporter.Error.WriteLine(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().
Red
());
290
LocalizableStrings.RerunCommandAndPassForceToCreateAnyway, SharedOptions.ForceOption.Name).Bold().
Red
()
297
Reporter.Error.WriteLine(instantiateResult.ErrorMessage.Bold().
Red
());
301
Reporter.Error.WriteLine(LocalizableStrings.OperationCancelled.Bold().
Red
());
304
Reporter.Error.WriteLine(string.Format(LocalizableStrings.UnexpectedResult, Enum.GetName(typeof(CreationResultStatus), instantiateResult.Status), instantiateResult.ErrorMessage).Bold().
Red
());
TemplateListCoordinator.cs (3)
91
.Bold().
Red
());
101
.Bold().
Red
());
113
.Bold().
Red
());
TemplatePackageCoordinator.cs (14)
473
LocalizableStrings.Generic_Info_NoMatchingTemplatePackage.Bold().
Red
(),
721
notFoundPackage).Bold().
Red
());
981
result.ErrorMessage).Bold().
Red
());
987
packageToInstall).Bold().
Red
());
993
packageToInstall).Bold().
Red
());
999
packageToInstall).Bold().
Red
());
1005
packageToInstall).Bold().
Red
());
1014
packageToInstall).Bold().
Red
());
1020
packageToInstall).Bold().
Red
());
1027
packageToInstall).Bold().
Red
());
1064
result.TemplatePackage.DisplayName).Bold().
Red
());
1072
result.TemplatePackage.DisplayName).Bold().
Red
());
1079
result.TemplatePackage.DisplayName).Bold().
Red
());
1087
result.ErrorMessage).Bold().
Red
());
TemplatePackageDisplay.cs (16)
28
{ 3, LocalizableStrings.TemplatePackageCoordinator_VulnerabilitySeverity_Critical.
Red
() },
134
result.ErrorMessage).Bold().
Red
());
140
packageToInstall).Bold().
Red
());
146
packageToInstall).Bold().
Red
());
152
packageToInstall).Bold().
Red
());
158
packageToInstall).Bold().
Red
());
167
packageToInstall).Bold().
Red
());
173
packageToInstall).Bold().
Red
());
183
packageToInstall).Bold().
Red
());
195
packageToInstall).Bold().
Red
());
215
packageToInstall).Bold().
Red
());
342
result.TemplatePackage.DisplayName).Bold().
Red
());
350
result.TemplatePackage.DisplayName).Bold().
Red
());
357
result.TemplatePackage.DisplayName).Bold().
Red
());
364
result.TemplatePackage.Identifier).Bold().
Red
());
374
result.ErrorMessage).Bold().
Red
());
TemplateSearch\CliTemplateSearchCoordinator.cs (5)
59
Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoSources.Bold().
Red
());
68
Reporter.Error.WriteLine(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).
Red
().Bold());
86
.Bold().
Red
());
255
Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoTemplateName.
Red
().Bold());
282
Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().
Red
());