94 references to Bold
dotnet (27)
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\Search\SearchResultPrinter.cs (10)
48
_reporter.WriteLine("----------------".
Bold
());
50
_reporter.WriteLine($"{CliCommandStrings.LatestVersion}: ".
Bold
() + p.LatestVersion);
53
_reporter.WriteLine($"{CliCommandStrings.Authors}: ".
Bold
() + string.Join(", ", p.Authors));
58
_reporter.WriteLine($"{CliCommandStrings.Tags}: ".
Bold
() + string.Join(", ", p.Tags));
61
_reporter.WriteLine($"{CliCommandStrings.Downloads}: ".
Bold
() + p.TotalDownloads);
64
_reporter.WriteLine($"{CliCommandStrings.Verified}: ".
Bold
() + p.Verified.ToString());
68
_reporter.WriteLine($"{CliCommandStrings.Summary}: ".
Bold
() + p.Summary);
73
_reporter.WriteLine($"{CliCommandStrings.Description}: ".
Bold
() + p.Description);
78
_reporter.WriteLine($"{CliCommandStrings.Versions}: ".
Bold
());
82
$"\t{version.Version}" + $" {CliCommandStrings.Downloads}: ".
Bold
() + version.Downloads);
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 (3)
124
? e.ToString().Red().
Bold
()
125
: e.Message.Red().
Bold
());
137
Reporter.Error.WriteLine(e.ToString().Red().
Bold
());
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
83
Reporter.Verbose.WriteLine(message.Red().
Bold
());
Microsoft.TemplateEngine.Cli (66)
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 (18)
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());
189
SharedOptionsFactory.ForceOptionName).
Bold
());
196
packageToInstall).
Bold
().Red());
201
SharedOptionsFactory.ForceOptionName).
Bold
());
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());
385
reporter.WriteLine($"{string.Empty.PadLeft(4)}{_vulnerabilitySeverityToColorMap[entry.Severity].
Bold
()}:");
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());