95 references to Red
dotnet (30)
CommandFactory\CommandResolution\ProjectFactory.cs (1)
60Reporter.Verbose.WriteLine(ex.ToString().Red());
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (3)
132exception.InnerException?.Message).Red()); 140exception.InnerException?.Message).Red()); 145Reporter.Verbose.WriteLine(exception.ToString().Red());
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (1)
42Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsErrorRemovingFolder, folder, ex.Message).Red());
Commands\Help\HelpCommand.cs (1)
100helpArgs).Red());
Commands\Run\CSharpCompilerCommand.cs (1)
172Reporter.Error.WriteLine("Error: Compiler server reports a different hash version than the SDK.".Red());
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\Execute\ToolExecuteCommand.cs (1)
87Reporter.Error.WriteLine(restoreResult.Message.Red());
Commands\Tool\Install\ProjectRestorer.cs (1)
93line = line.Red();
Commands\Tool\Restore\ToolRestoreCommand.cs (2)
136toolRestoreResults.Where(r => !r.IsSuccess).Select(r => r.Message)).Red()); 156: CliCommandStrings.RestoreFailed).Red());
Extensions\ParseResultExtensions.cs (1)
106Reporter.Error.WriteLine(CliStrings.RequiredCommandNotPassed.Red());
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 (4)
124? e.ToString().Red().Bold() 125: e.Message.Red().Bold()); 137Reporter.Error.WriteLine(e.ToString().Red().Bold()); 172Reporter.Error.WriteLine(e.Message.Red());
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
83Reporter.Verbose.WriteLine(message.Red().Bold());
Microsoft.TemplateEngine.Cli (64)
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 (16)
29{ 3, LocalizableStrings.TemplatePackageCoordinator_VulnerabilitySeverity_Critical.Red() }, 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()); 196packageToInstall).Bold().Red()); 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());
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());