1 write to Error
Microsoft.DotNet.Cli.Utils (1)
Reporter.cs (1)
101Error = CommandLoggingContext.ErrorEnabled ? s_errorReporter : NullReporter;
128 references to Error
dotnet-aot (12)
parent\dotnet\Commands\Run\LaunchProfileReadResult.cs (1)
30(isError ? Reporter.Error : Reporter.Output).WriteLine(message);
parent\dotnet\Commands\Test\MTP\TestApplication.cs (1)
1137Reporter.Error.WriteLine(messageBuilder.ToString());
parent\dotnet\Commands\Test\MTP\TestApplicationActionQueue.cs (1)
132Reporter.Error.WriteLine(string.Format(CliCommandStrings.ErrorRunningTestModule, module.RunProperties?.Command, module.RunProperties?.Arguments, exAsString));
parent\dotnet\Extensions\ParseResultExtensions.cs (1)
193Reporter.Error.WriteLine(CliStrings.RequiredCommandNotPassed.Red());
parent\dotnet\FirstRunExperience.cs (1)
124var reporter = Reporter.Error;
parent\dotnet\NugetPackageDownloader\NuGetConsoleLogger.cs (2)
62Reporter.Error.WriteLine($"[NuGet Manager] [Error] {data}"); 87Reporter.Error.WriteLine($"[NuGet Manager] [Warning] {data}");
parent\dotnet\Parser.cs (5)
376Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 382Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 389Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 395Reporter.Error.Write("Unhandled exception: ".Red().Bold()); 396Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ?
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
158_stdErr?.ForwardTo(writeLine: Reporter.Error.WriteLine);
Microsoft.TemplateEngine.Cli (115)
Commands\BaseCommand.cs (5)
265Reporter.Error.WriteLine(ex.Message.Bold().Red()); 278Reporter.Error.WriteLine(ex.Message.Bold().Red()); 283Reporter.Error.WriteLine(ex.StackTrace.Bold().Red()); 290Reporter.Error.WriteLine(); 291Reporter.Error.WriteLine(LocalizableStrings.BaseCommand_ExitCodeHelp, (int)returnCode);
Commands\create\InstantiateCommand.cs (7)
192HandleNoMatchingTemplateGroup(instantiateArgs, allTemplateGroups, Reporter.Error); 197return HandleAmbiguousTemplateGroup(environmentSettings, templatePackageManager, selectedTemplateGroups, Reporter.Error, cancellationToken); 264Reporter.Error, 268return HandleNoTemplateFoundResult(args, environmentSettings, templatePackageManager, templateGroup, Reporter.Error); 284Reporter.Error); 293Reporter.Error); 420Reporter.Error.WriteLine(LocalizableStrings.GenericWarning, e.Message);
Commands\create\InstantiateCommand.NoMatchHandling.cs (3)
198Reporter.Error.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().Red()); 209Reporter.Error.WriteLine(string.Format(LocalizableStrings.TemplateOptions_Error_AllowedValuesForOptionList, token.Value, allowedValues)); 213Reporter.Error.WriteLine();
Commands\create\InstantiateCommand.TabCompletion.cs (1)
92Reporter.Error.WriteLine(LocalizableStrings.GenericWarning, e.Message);
Commands\create\TemplateCommand.cs (2)
169TemplatePackageDisplay templatePackageDisplay = new(Reporter.Output, Reporter.Error); 238var reporter = templateArgs.IsForceFlagSpecified ? Reporter.Output : Reporter.Error;
NuGet\CliNuGetLogger.cs (2)
48Reporter.Error.WriteLine($"[NuGet Manager] [Error] {data}"); 73Reporter.Error.WriteLine($"[NuGet Manager] [Warning] {data}");
PostActionDispatcher.cs (7)
114Reporter.Error.WriteLine(LocalizableStrings.PostActionDispatcher_Error_NotSupported, action.ActionId); 117Reporter.Error.WriteLine(LocalizableStrings.PostActionDescription, action.Description); 127Reporter.Error.WriteLine(LocalizableStrings.PostActionDispatcher_Error_RunScriptNotAllowed); 130Reporter.Error.WriteLine(LocalizableStrings.PostActionDescription, action.Description); 227Reporter.Error.WriteLine(LocalizableStrings.PostActionFailedInstructionHeader); 233Reporter.Error.WriteLine(LocalizableStrings.PostActionFailedInstructionHeader); 249IReporter stream = useErrorOutput ? Reporter.Error : Reporter.Output;
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (12)
88Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, JsonFileNameArgument)); 94Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, DetectRepoRoot)); 100Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllDirectoriesInSearch)); 108Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllParentDirectoriesInSearch)); 124Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowFileCreationArgument)); 130Reporter.Error.WriteLine(LocalizableStrings.PostAction_ModifyJson_Error_NoJsonFile); 141Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_MultipleJsonFiles, jsonFileName)); 180Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_NullJson, fileContent)); 186Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowPathCreationArgument)); 194Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ParentPropertyPathInvalid, propertyPath)); 312Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyNameArgument)); 318Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyValueArgument));
PostActionProcessors\ChmodPostActionProcessor.cs (3)
55Reporter.Error.WriteLine(LocalizableStrings.UnableToSetPermissions, entry.Key, file); 65Reporter.Error.WriteLine(LocalizableStrings.UnableToSetPermissions, entry.Key, file); 71Reporter.Error.WriteLine(LocalizableStrings.UnableToSetPermissions, entry.Key, file);
PostActionProcessors\ProcessStartPostActionProcessor.cs (8)
21Reporter.Error.WriteLine(LocalizableStrings.PostAction_ProcessStartProcessor_Error_ConfigMissingExecutable); 66Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 75Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 76Reporter.Error.WriteCommandOutput(commandResult); 77Reporter.Error.WriteLine(string.Empty); 88Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 89Reporter.Error.WriteLine(ex.Message); 90Reporter.Error.WriteLine(string.Empty);
TemplateInvoker.cs (22)
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()); 240Reporter.Error.WriteLine(); 268Reporter.Error.WriteLine($"{LocalizableStrings.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().Red()); 269Reporter.Error.WriteLine(LocalizableStrings.RunHelpForInformationAboutAcceptedParameters); 270Reporter.Error.WriteCommand( 277Reporter.Error.WriteLine(LocalizableStrings.DestructiveChangesNotification.Bold().Red()); 286Reporter.Error.WriteLine(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().Red()); 288Reporter.Error.WriteLine(); 290Reporter.Error.WriteLine( 294Reporter.Error.WriteCommand(Example.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).WithOption(c => c.ForceOption)); 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 (8)
88Reporter.Error.WriteLine( 97Reporter.Error.WriteLine( 109Reporter.Error.WriteLine( 117Reporter.Error.WriteLine(); 119Reporter.Error.WriteLine(LocalizableStrings.Generic_CommandHints_Search); 122Reporter.Error.WriteCommand( 130Reporter.Error.WriteCommand( 136Reporter.Error.WriteLine();
TemplatePackageCoordinator.cs (23)
44_templatePackageDisplay = new TemplatePackageDisplay(Reporter.Output, Reporter.Error); 70Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Error_PackageForTemplateNotFound, args.Template.Identity); 96Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Error_PackageForTemplateNotFound, template.Identity); 160Reporter.Error.WriteLine(); 230Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Error_FoundNoPackagesToInstall); 242Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Error_SameInstallRequests, installRequest.PackageIdentifier); 383Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_GenericError, uninstallResult.TemplatePackage.DisplayName, uninstallResult.ErrorMessage); 631IReporter reporter = args.Force ? Reporter.Output : Reporter.Error; 719Reporter.Error.WriteLine( 729Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Error_TemplateIncludedToPackages, notFoundPackage); 734Reporter.Error.WriteLine( 740Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_UninstallCommandHeader); 744Reporter.Error.WriteCommand( 752Reporter.Error.WriteCommand( 761Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader); 762Reporter.Error.WriteCommand( 770Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader); 771Reporter.Error.WriteCommand( 776Reporter.Error.WriteLine(); 824Reporter.Error.WriteLine( 832Reporter.Error.WriteLine( 839Reporter.Error.WriteLine( 846Reporter.Error.WriteLine(
TemplatePackageDisplay.cs (1)
331Reporter.Error.WriteLine();
TemplateSearch\CliTemplateSearchCoordinator.cs (11)
60Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoSources.Bold().Red()); 68Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_MatchesFromSource, result.Provider.Factory.DisplayName); 69Reporter.Error.WriteLine(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).Red().Bold()); 83Reporter.Error.WriteLine( 256Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoTemplateName.Red().Bold()); 257Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_SearchHelp, string.Join(", ", FilterOptions.GetAllNames(NewSearchCommandDefinition.HasSupportedPackageFilterOption).Select(static optionName => $"'{optionName}'"))); 258Reporter.Error.WriteLine(LocalizableStrings.Generic_ExamplesHeader); 259Reporter.Error.WriteCommand( 265Reporter.Error.WriteCommand( 271Reporter.Error.WriteCommand( 283Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().Red());