94 references to Bold
dotnet (27)
Commands\Run\RunCommand.cs (1)
176Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, LaunchProfileParser.GetLaunchProfileDisplayName(LaunchProfile), launchProfileParseResult.FailureReason).Bold().Red());
Commands\Run\VirtualProjectBuildingCommand.cs (2)
386e.ToString().Red().Bold() : 387e.Message.Red().Bold());
Commands\Test\MTP\MSBuildHandler.cs (1)
50string.Join(Environment.NewLine, vsTestTestProjects.Select(module => Path.GetFileName(module.ProjectFullPath))).Red().Bold()));
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
412Reporter.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)
269exception.ToString().Red().Bold() : 270exception.Message.Red().Bold()); 275exception.ToString().Red().Bold() : 276exception.Message.Red().Bold()); 282exception.ToString().Red().Bold() : 283exception.Message.Red().Bold()); 287Reporter.Error.Write("Unhandled exception: ".Red().Bold()); 289exception.ToString().Red().Bold() : 290exception.Message.Red().Bold());
Program.cs (3)
124? e.ToString().Red().Bold() 125: e.Message.Red().Bold()); 137Reporter.Error.WriteLine(e.ToString().Red().Bold());
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
83Reporter.Verbose.WriteLine(message.Red().Bold());
Microsoft.TemplateEngine.Cli (66)
Commands\BaseCommand.cs (3)
265Reporter.Error.WriteLine(ex.Message.Bold().Red()); 278Reporter.Error.WriteLine(ex.Message.Bold().Red()); 283Reporter.Error.WriteLine(ex.StackTrace.Bold().Red());
Commands\create\InstantiateCommand.cs (8)
96string.Format(LocalizableStrings.InstantiateCommand_Info_NoMatchingTemplatesSubCommands, instantiateArgs.ShortName).Bold().Red()); 114reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red()); 128reporter.WriteLine(formatter.Layout().Bold().Red()); 129reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red()); 296reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red()); 312reporter.WriteLine(formatter.Layout().Bold().Red()); 314reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red()); 320reporter.WriteLine(string.Format(LocalizableStrings.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().Red());
Commands\create\InstantiateCommand.NoMatchHandling.cs (3)
142reporter.WriteLine(InvalidOptionsListToString(invalidOptionsList, matchInfos).Bold().Red()); 147reporter.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().Red()); 198Reporter.Error.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().Red());
PostActionDispatcher.cs (2)
189Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red()); 256stream.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (1)
24Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
TemplateInvoker.cs (17)
69Reporter.Error.WriteLine(cx.Message.Bold().Red()); 72Reporter.Error.WriteLine(cx.InnerException.Message.Bold().Red()); 80Reporter.Error.WriteLine(ex.Message.Bold().Red()); 139Reporter.Error.WriteLine(string.Format(LocalizableStrings.InvalidNameParameter, printableChars, nonPrintableChars).Bold().Red()); 181Reporter.Error.WriteLine(cx.Message.Bold().Red()); 184Reporter.Error.WriteLine(cx.InnerException.Message.Bold().Red()); 191Reporter.Error.WriteLine(tae.Message.Bold().Red()); 224Reporter.Error.WriteLine(string.Format(LocalizableStrings.CreateFailed, resultTemplateName, instantiateResult.ErrorMessage).Bold().Red()); 235Reporter.Error.WriteLine(string.Format(LocalizableStrings.MissingRequiredParameter, fixedMessage, resultTemplateName).Bold().Red()); 239Reporter.Error.WriteLine(LocalizableStrings.TemplateCreator_Error_TemplateNotFound.Bold().Red()); 268Reporter.Error.WriteLine($"{LocalizableStrings.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().Red()); 277Reporter.Error.WriteLine(LocalizableStrings.DestructiveChangesNotification.Bold().Red()); 286Reporter.Error.WriteLine(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().Red()); 292LocalizableStrings.RerunCommandAndPassForceToCreateAnyway, SharedOptionsFactory.ForceOptionName).Bold().Red() 299Reporter.Error.WriteLine(instantiateResult.ErrorMessage.Bold().Red()); 303Reporter.Error.WriteLine(LocalizableStrings.OperationCancelled.Bold().Red()); 306Reporter.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)
470LocalizableStrings.Generic_Info_NoMatchingTemplatePackage.Bold().Red(), 718notFoundPackage).Bold().Red()); 823result.TemplatePackage.DisplayName).Bold().Red()); 831result.TemplatePackage.DisplayName).Bold().Red()); 838result.TemplatePackage.DisplayName).Bold().Red()); 846result.ErrorMessage).Bold().Red());
TemplatePackageDisplay.cs (18)
135result.ErrorMessage).Bold().Red()); 141packageToInstall).Bold().Red()); 147packageToInstall).Bold().Red()); 153packageToInstall).Bold().Red()); 159packageToInstall).Bold().Red()); 168packageToInstall).Bold().Red()); 174packageToInstall).Bold().Red()); 184packageToInstall).Bold().Red()); 189SharedOptionsFactory.ForceOptionName).Bold()); 196packageToInstall).Bold().Red()); 201SharedOptionsFactory.ForceOptionName).Bold()); 216packageToInstall).Bold().Red()); 343result.TemplatePackage.DisplayName).Bold().Red()); 351result.TemplatePackage.DisplayName).Bold().Red()); 358result.TemplatePackage.DisplayName).Bold().Red()); 365result.TemplatePackage.Identifier).Bold().Red()); 375result.ErrorMessage).Bold().Red()); 385reporter.WriteLine($"{string.Empty.PadLeft(4)}{_vulnerabilitySeverityToColorMap[entry.Severity].Bold()}:");
TemplateSearch\CliTemplateSearchCoordinator.cs (5)
60Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoSources.Bold().Red()); 69Reporter.Error.WriteLine(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).Red().Bold()); 87.Bold().Red()); 256Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoTemplateName.Red().Bold()); 283Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().Red());