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