95 references to Red
dotnet (30)
CommandFactory\CommandResolution\ProjectFactory.cs (1)
60
Reporter.Verbose.WriteLine(ex.ToString().
Red
());
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (3)
132
exception.InnerException?.Message).
Red
());
140
exception.InnerException?.Message).
Red
());
145
Reporter.Verbose.WriteLine(exception.ToString().
Red
());
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (1)
42
Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsErrorRemovingFolder, folder, ex.Message).
Red
());
Commands\Help\HelpCommand.cs (1)
100
helpArgs).
Red
());
Commands\Run\CSharpCompilerCommand.cs (1)
172
Reporter.Error.WriteLine("Error: Compiler server reports a different hash version than the SDK.".
Red
());
Commands\Run\RunCommand.cs (1)
176
Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, LaunchProfileParser.GetLaunchProfileDisplayName(LaunchProfile), launchProfileParseResult.FailureReason).Bold().
Red
());
Commands\Run\VirtualProjectBuildingCommand.cs (2)
386
e.ToString().
Red
().Bold() :
387
e.Message.
Red
().Bold());
Commands\Test\MTP\MSBuildHandler.cs (1)
50
string.Join(Environment.NewLine, vsTestTestProjects.Select(module => Path.GetFileName(module.ProjectFullPath))).
Red
().Bold()));
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
412
Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName, result.FailureReason).Bold().
Red
());
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
87
Reporter.Error.WriteLine(restoreResult.Message.
Red
());
Commands\Tool\Install\ProjectRestorer.cs (1)
93
line = line.
Red
();
Commands\Tool\Restore\ToolRestoreCommand.cs (2)
136
toolRestoreResults.Where(r => !r.IsSuccess).Select(r => r.Message)).
Red
());
156
: CliCommandStrings.RestoreFailed).
Red
());
Extensions\ParseResultExtensions.cs (1)
106
Reporter.Error.WriteLine(CliStrings.RequiredCommandNotPassed.
Red
());
Parser.cs (9)
269
exception.ToString().
Red
().Bold() :
270
exception.Message.
Red
().Bold());
275
exception.ToString().
Red
().Bold() :
276
exception.Message.
Red
().Bold());
282
exception.ToString().
Red
().Bold() :
283
exception.Message.
Red
().Bold());
287
Reporter.Error.Write("Unhandled exception: ".
Red
().Bold());
289
exception.ToString().
Red
().Bold() :
290
exception.Message.
Red
().Bold());
Program.cs (4)
124
? e.ToString().
Red
().Bold()
125
: e.Message.
Red
().Bold());
137
Reporter.Error.WriteLine(e.ToString().
Red
().Bold());
172
Reporter.Error.WriteLine(e.Message.
Red
());
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
83
Reporter.Verbose.WriteLine(message.
Red
().Bold());
Microsoft.TemplateEngine.Cli (64)
Commands\BaseCommand.cs (3)
265
Reporter.Error.WriteLine(ex.Message.Bold().
Red
());
278
Reporter.Error.WriteLine(ex.Message.Bold().
Red
());
283
Reporter.Error.WriteLine(ex.StackTrace.Bold().
Red
());
Commands\create\InstantiateCommand.cs (8)
96
string.Format(LocalizableStrings.InstantiateCommand_Info_NoMatchingTemplatesSubCommands, instantiateArgs.ShortName).Bold().
Red
());
114
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().
Red
());
128
reporter.WriteLine(formatter.Layout().Bold().
Red
());
129
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().
Red
());
296
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().
Red
());
312
reporter.WriteLine(formatter.Layout().Bold().
Red
());
314
reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().
Red
());
320
reporter.WriteLine(string.Format(LocalizableStrings.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().
Red
());
Commands\create\InstantiateCommand.NoMatchHandling.cs (3)
142
reporter.WriteLine(InvalidOptionsListToString(invalidOptionsList, matchInfos).Bold().
Red
());
147
reporter.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().
Red
());
198
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)
69
Reporter.Error.WriteLine(cx.Message.Bold().
Red
());
72
Reporter.Error.WriteLine(cx.InnerException.Message.Bold().
Red
());
80
Reporter.Error.WriteLine(ex.Message.Bold().
Red
());
139
Reporter.Error.WriteLine(string.Format(LocalizableStrings.InvalidNameParameter, printableChars, nonPrintableChars).Bold().
Red
());
181
Reporter.Error.WriteLine(cx.Message.Bold().
Red
());
184
Reporter.Error.WriteLine(cx.InnerException.Message.Bold().
Red
());
191
Reporter.Error.WriteLine(tae.Message.Bold().
Red
());
224
Reporter.Error.WriteLine(string.Format(LocalizableStrings.CreateFailed, resultTemplateName, instantiateResult.ErrorMessage).Bold().
Red
());
235
Reporter.Error.WriteLine(string.Format(LocalizableStrings.MissingRequiredParameter, fixedMessage, resultTemplateName).Bold().
Red
());
239
Reporter.Error.WriteLine(LocalizableStrings.TemplateCreator_Error_TemplateNotFound.Bold().
Red
());
268
Reporter.Error.WriteLine($"{LocalizableStrings.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().
Red
());
277
Reporter.Error.WriteLine(LocalizableStrings.DestructiveChangesNotification.Bold().
Red
());
286
Reporter.Error.WriteLine(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().
Red
());
292
LocalizableStrings.RerunCommandAndPassForceToCreateAnyway, SharedOptionsFactory.ForceOptionName).Bold().
Red
()
299
Reporter.Error.WriteLine(instantiateResult.ErrorMessage.Bold().
Red
());
303
Reporter.Error.WriteLine(LocalizableStrings.OperationCancelled.Bold().
Red
());
306
Reporter.Error.WriteLine(string.Format(LocalizableStrings.UnexpectedResult, Enum.GetName(typeof(CreationResultStatus), instantiateResult.Status), instantiateResult.ErrorMessage).Bold().
Red
());
TemplateListCoordinator.cs (3)
92
.Bold().
Red
());
102
.Bold().
Red
());
114
.Bold().
Red
());
TemplatePackageCoordinator.cs (6)
470
LocalizableStrings.Generic_Info_NoMatchingTemplatePackage.Bold().
Red
(),
718
notFoundPackage).Bold().
Red
());
823
result.TemplatePackage.DisplayName).Bold().
Red
());
831
result.TemplatePackage.DisplayName).Bold().
Red
());
838
result.TemplatePackage.DisplayName).Bold().
Red
());
846
result.ErrorMessage).Bold().
Red
());
TemplatePackageDisplay.cs (16)
29
{ 3, LocalizableStrings.TemplatePackageCoordinator_VulnerabilitySeverity_Critical.
Red
() },
135
result.ErrorMessage).Bold().
Red
());
141
packageToInstall).Bold().
Red
());
147
packageToInstall).Bold().
Red
());
153
packageToInstall).Bold().
Red
());
159
packageToInstall).Bold().
Red
());
168
packageToInstall).Bold().
Red
());
174
packageToInstall).Bold().
Red
());
184
packageToInstall).Bold().
Red
());
196
packageToInstall).Bold().
Red
());
216
packageToInstall).Bold().
Red
());
343
result.TemplatePackage.DisplayName).Bold().
Red
());
351
result.TemplatePackage.DisplayName).Bold().
Red
());
358
result.TemplatePackage.DisplayName).Bold().
Red
());
365
result.TemplatePackage.Identifier).Bold().
Red
());
375
result.ErrorMessage).Bold().
Red
());
TemplateSearch\CliTemplateSearchCoordinator.cs (5)
60
Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoSources.Bold().
Red
());
69
Reporter.Error.WriteLine(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).
Red
().Bold());
87
.Bold().
Red
());
256
Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoTemplateName.
Red
().Bold());
283
Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().
Red
());