3 instantiations of Reporter
Microsoft.DotNet.Cli.Utils (3)
Reporter.cs (3)
13private static readonly Reporter s_consoleOutReporter = new(AnsiConsole.GetOutput()); 14private static readonly Reporter s_consoleErrReporter = new(AnsiConsole.GetError()); 33public static Reporter NullReporter { get; } = new(console: null);
380 references to Reporter
dotnet-aot (106)
parent\dotnet\CliCompletion.cs (1)
30Reporter.Verbose.WriteLine($"Exception occurred while getting completions: {e}");
parent\dotnet\CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (3)
41Reporter.Verbose.WriteLine(string.Format( 51Reporter.Verbose.WriteLine(string.Format( 69Reporter.Verbose.WriteLine(string.Format(
parent\dotnet\Commands\Run\AotRunCommand.cs (4)
187Reporter.Output.WriteLine(CliCommandStrings.RunCommandBuilding); 189Reporter.Verbose.WriteLine($"AOT run tier: {runTier} ({decisionReason})."); 314Reporter.Verbose.WriteLine($"Failed to read the runtime version: {exception}"); 443Reporter.Verbose.WriteLine($"AOT run is falling back to the managed CLI because {reason}.");
parent\dotnet\Commands\Run\FileBasedAppCacheInfo.cs (3)
59Reporter.Verbose.WriteLine("CSC auxiliary files can NOT be reused due to the same reason build is needed."); 65Reporter.Verbose.WriteLine("CSC auxiliary files can NOT be reused because previous build level was not CSC " + 70Reporter.Verbose.WriteLine("CSC auxiliary files can be reused.");
parent\dotnet\Commands\Run\FileBasedAppRunPlan.cs (32)
96Reporter.Verbose.WriteLine("Falling back to the managed CLI because the build success cache does not exist."); 109Reporter.Verbose.WriteLine("Falling back to the managed CLI because the previous build was not synthetic CSC."); 115Reporter.Verbose.WriteLine("Falling back to the managed CLI because the entry point file is missing."); 206Reporter.Verbose.WriteLine("Building because --no-cache was specified."); 213Reporter.Verbose.WriteLine("No need to build, the output is up to date. Cache: " + inputs.ArtifactsPath); 224Reporter.Verbose.WriteLine("We have CSC arguments from previous run. Skipping MSBuild and using CSC only."); 238Reporter.Verbose.WriteLine("Using MSBuild because there are directives in the source file."); 246Reporter.Verbose.WriteLine($"Using MSBuild because there are global properties, for example '{exampleKey}={exampleValue}'."); 253Reporter.Verbose.WriteLine($"Using MSBuild because there are implicit build files, for example '{exampleMSBuildFile}'."); 261Reporter.Verbose.WriteLine($"Using MSBuild because NuGet package file does not exist: {filePath}"); 266Reporter.Verbose.WriteLine("Skipping MSBuild and using CSC only."); 300Reporter.Verbose.WriteLine($"Failed to deserialize cache entry ({path}): {exception}"); 366Reporter.Verbose.WriteLine($"Cannot touch folder '{artifactsPath}': {exception}"); 381Reporter.Verbose.WriteLine("Skipping computing cache because there are project or ref directives."); 421Reporter.Verbose.WriteLine("Building because cache file does not exist: " + successCacheFile.FullName); 428Reporter.Verbose.WriteLine("Building because start cache file does not exist: " + startCacheFile.FullName); 435Reporter.Verbose.WriteLine("Building because start cache file is newer than success cache file (previous build likely failed): " + startCacheFile.FullName); 445Reporter.Verbose.WriteLine("Building because previous cache entry could not be deserialized: " + successCacheFile.FullName); 455Reporter.Verbose.WriteLine("Building because the run output is missing: " + previousRunCommand); 463Reporter.Verbose.WriteLine($"Building because previous SDK version ({previousCacheEntry.SdkVersion}) does not match current ({cacheEntry.SdkVersion}): {successCacheFile.FullName}"); 470Reporter.Verbose.WriteLine($"Building because previous runtime version ({previousCacheEntry.RuntimeVersion}) does not match current ({cacheEntry.RuntimeVersion}): {successCacheFile.FullName}"); 477Reporter.Verbose.WriteLine($"Building because previous global properties count ({previousCacheEntry.GlobalProperties.Count}) does not match current count ({cacheEntry.GlobalProperties.Count}): {successCacheFile.FullName}"); 485Reporter.Verbose.WriteLine($"Building because previous global property \"{key}\" ({otherValue}) does not match current ({value}): {successCacheFile.FullName}"); 494Reporter.Verbose.WriteLine("Building because entry point file is missing: " + entryPointFile.FullName); 501Reporter.Verbose.WriteLine($"Building because resolved entry point file path changed from '{previousCacheEntry.ResolvedEntryPointFilePath}' to '{cacheEntry.ResolvedEntryPointFilePath}': {successCacheFile.FullName}"); 510Reporter.Verbose.WriteLine("Compiling because entry point file is modified: " + entryPointFile.FullName); 511Reporter.Verbose.WriteLine(reasonToNotReuseCscArguments); 521Reporter.Verbose.WriteLine("Building because implicit build file is missing or modified: " + implicitBuildFileInfo.FullName); 531Reporter.Verbose.WriteLine("Building because new implicit build file is present: " + implicitBuildFilePath); 547Reporter.Verbose.WriteLine($"Building because additional source file '{additionalSource.Original}' resolved path changed from '{additionalSource.Resolved}' to '{resolvedFileInfo.FullName}': {successCacheFile.FullName}"); 553Reporter.Verbose.WriteLine("Building because additional source file is missing or modified: " + resolvedFileInfo.FullName); 562Reporter.Verbose.WriteLine("Compiling because entry point file is modified: " + entryPointFile.FullName);
parent\dotnet\Commands\Run\LaunchProfileReadResult.cs (2)
30(isError ? Reporter.Error : Reporter.Output).WriteLine(message);
parent\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (1)
36_reporter = reporter ?? Reporter.Output;
parent\dotnet\Commands\Solution\List\SolutionListCommand.cs (4)
54Reporter.Output.WriteLine(CliStrings.NoProjectsFound); 61Reporter.Output.WriteLine(header); 62Reporter.Output.WriteLine(new string('-', header.Length)); 65Reporter.Output.WriteLine(slnProject);
parent\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
22_reporter = reporter ?? Reporter.Output;
parent\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (4)
93Reporter.Output.WriteLine(CliStrings.ProjectNotFoundInTheSolution, projectPath); 99Reporter.Output.WriteLine(CliStrings.ProjectRemovedFromTheSolution, projectPath); 161Reporter.Output.WriteLine(CliStrings.ProjectRemovedFromTheSolution, normalizedPath); 165Reporter.Output.WriteLine(CliStrings.ProjectNotFoundInTheSolution, normalizedPath);
parent\dotnet\Commands\Test\AotTestCommand.cs (1)
38Reporter.Verbose.WriteLine("AOT test tier: TestModules.");
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (4)
240Utils.Reporter.Output.WriteLine(title); 249Utils.Reporter.Output.WriteLine(); 250Utils.Reporter.Output.WriteLine((groupedModules.Key ? CliCommandStrings.HelpUnavailableOptions : CliCommandStrings.HelpUnavailableExtensionOptions).Yellow()); 273Utils.Reporter.Output.WriteLine($"{missing}\n{line}\n");
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\Commands\Test\MTP\TestModulesFilterHandler.cs (2)
48Reporter.Output.WriteLine(string.Format(CliCommandStrings.CmdNonExistentRootDirectoryErrorDescription, _testModulesRoot).Yellow()); 55Reporter.Output.WriteLine(string.Format(CliCommandStrings.CmdNoTestModulesErrorDescription, _testModules, _testModulesRoot).Yellow());
parent\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (1)
26_reporter = reporter ?? Reporter.Output;
parent\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (2)
18private readonly SearchResultPrinter _searchResultPrinter = new(Reporter.Output); 25Reporter.Output.WriteLine(CliCommandStrings.NeedNuGetInConfig);
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
34_reporter = reporter ?? Reporter.Output;
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
162reporter ??= Reporter.Output;
parent\dotnet\Extensions\ParseResultExtensions.cs (1)
193Reporter.Error.WriteLine(CliStrings.RequiredCommandNotPassed.Red());
parent\dotnet\FirstRunExperience.cs (1)
124var reporter = Reporter.Error;
parent\dotnet\MsbuildProject.cs (4)
105Reporter.Output.WriteLine(string.Format( 114Reporter.Output.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, @ref)); 247Reporter.Output.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, r)); 253Reporter.Output.WriteLine(string.Format(
parent\dotnet\NugetPackageDownloader\NuGetConsoleLogger.cs (7)
57Reporter.Verbose.WriteLine($"[NuGet Manager] [DEBUG] {data}"); 62Reporter.Error.WriteLine($"[NuGet Manager] [Error] {data}"); 67Reporter.Output.WriteLine($"[NuGet Manager] [Info] {data}"); 72Reporter.Output.WriteLine($"[NuGet Manager] [Info Summary] {data}"); 77Reporter.Output.WriteLine($"[NuGet Manager] {data}"); 82Reporter.Verbose.WriteLine($"[NuGet Manager] [Verbose] {data}"); 87Reporter.Error.WriteLine($"[NuGet Manager] [Warning] {data}");
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
79_reporter = reporter ?? Reporter.Output;
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 ?
parent\dotnet\ParserOptionActions.cs (15)
128Reporter.Output.WriteLine(Product.Version); 149Reporter.Output.WriteLine($"{LocalizableStrings.DotNetSdkInfoLabel}"); 150Reporter.Output.WriteLine($" Version: {Product.Version}"); 151Reporter.Output.WriteLine($" Commit: {commitSha}"); 152Reporter.Output.WriteLine($" Workload version: {WorkloadInfoHelper.GetWorkloadsVersion()}"); 153Reporter.Output.WriteLine($" MSBuild version: {MSBuildForwardingAppWithoutLogging.MSBuildVersion}"); 154Reporter.Output.WriteLine(); 155Reporter.Output.WriteLine($"{LocalizableStrings.DotNetRuntimeInfoLabel}"); 156Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}"); 157Reporter.Output.WriteLine($" OS Version: {RuntimeEnvironment.OperatingSystemVersion}"); 158Reporter.Output.WriteLine($" OS Platform: {RuntimeEnvironment.OperatingSystemPlatform}"); 163Reporter.Output.WriteLine($" RID: {RuntimeInformation.RuntimeIdentifier}"); 169Reporter.Output.WriteLine($" Base Path: {SdkPaths.SdkDirectory}"); 173Reporter.Output.WriteLine(); 174Reporter.Output.WriteLine($"{LocalizableStrings.DotnetWorkloadInfoLabel}");
parent\dotnet\ShellShim\EnvironmentPathFactory.cs (3)
39Reporter.Output, 47reporter: Reporter.Output, 64reporter: Reporter.Output,
Microsoft.DotNet.Cli.Utils (14)
BuiltInCommand.cs (2)
54Reporter.Reset(); 82Reporter.Reset();
Command.cs (7)
30Reporter.Verbose.WriteLine(string.Format( 46Reporter.Verbose.WriteLine($"> {Command.FormatProcessInfo(_process.StartInfo)}".White()); 55Reporter.Verbose.WriteLine(string.Format( 79Reporter.Verbose.WriteLine(message.Green()); 83Reporter.Verbose.WriteLine(message.Red().Bold()); 138_stdOut?.ForwardTo(writeLine: Reporter.Output.WriteLine); 158_stdErr?.ForwardTo(writeLine: Reporter.Error.WriteLine);
Reporter.cs (5)
13private static readonly Reporter s_consoleOutReporter = new(AnsiConsole.GetOutput()); 14private static readonly Reporter s_consoleErrReporter = new(AnsiConsole.GetError()); 33public static Reporter NullReporter { get; } = new(console: null); 34public static Reporter ConsoleOutReporter => s_consoleOutReporter; 35public static Reporter ConsoleErrReporter => s_consoleErrReporter;
Microsoft.TemplateEngine.Cli (260)
Commands\AliasAssignmentCoordinator.cs (1)
161Reporter.Verbose.WriteLine(string.Format(LocalizableStrings.AliasAssignmentCoordinator_Error_ShortAlias, parameter.Name, shortName, qualifiedShortName));
Commands\BaseCommand.cs (19)
127Reporter.Output.WriteLine(LocalizableStrings.Commands_TemplateShortNameCommandConflict_Info, usedCommandAlias); 131Reporter.Output.WriteCommand(example); 132Reporter.Output.WriteLine(); 145Reporter.Output.WriteLine(string.Format( 150Reporter.Output.WriteLine(LocalizableStrings.Commands_Warning_DeprecatedCommand_Info.Yellow()); 151Reporter.Output.WriteCommand(Example.For<TNewCommand>(parseResult).WithHelpOption().ToString().Yellow()); 152Reporter.Output.WriteLine(); 177Reporter.Output.WriteLine("Attach to the process and press any key"); 207Reporter.Output.WriteLine(LocalizableStrings.CurrentConfiguration); 208Reporter.Output.WriteLine(" "); 218Reporter.Output.WriteLine(mountPointsFormatter.Layout()); 219Reporter.Output.WriteLine(); 229Reporter.Output.WriteLine(generatorsFormatter.Layout()); 230Reporter.Output.WriteLine(); 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\CliPathInfo.cs (1)
47Reporter.Verbose.WriteLine($"Global Settings Location: {definedSettingsLocation}");
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.Help.cs (4)
39HandleNoMatchingTemplateGroup(instantiateCommandArgs, allTemplateGroups, Reporter.Output); 44HandleAmbiguousTemplateGroup(environmentSettings, templatePackageManager, selectedTemplateGroups, Reporter.Output); 59HandleNoTemplateFoundResult(instantiateCommandArgs, environmentSettings, templatePackageManager, templateGroup, Reporter.Output); 66Reporter.Output,
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 (5)
169TemplatePackageDisplay templatePackageDisplay = new(Reporter.Output, Reporter.Error); 196Reporter.Output.WriteLine(); 238var reporter = templateArgs.IsForceFlagSpecified ? Reporter.Output : Reporter.Error;
NuGet\CliNuGetLogger.cs (7)
43Reporter.Verbose.WriteLine($"[NuGet Manager] [DEBUG] {data}"); 48Reporter.Error.WriteLine($"[NuGet Manager] [Error] {data}"); 53Reporter.Output.WriteLine($"[NuGet Manager] [Info] {data}"); 58Reporter.Output.WriteLine($"[NuGet Manager] [Info Summary] {data}"); 63Reporter.Output.WriteLine($"[NuGet Manager] {data}"); 68Reporter.Verbose.WriteLine($"[NuGet Manager] [Verbose] {data}"); 73Reporter.Error.WriteLine($"[NuGet Manager] [Warning] {data}");
PostActionDispatcher.cs (19)
88Reporter.Output.WriteLine(); 89Reporter.Output.WriteLine(LocalizableStrings.ProcessingPostActions); 101Reporter.Output.WriteLine(LocalizableStrings.ActionWouldHaveBeenTakenAutomatically); 104Reporter.Output.WriteLine(action.Description.Indent()); 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); 170Reporter.Output.WriteLine(); 180Reporter.Output.WriteLine(LocalizableStrings.PostActionPromptHeader); 183Reporter.Output.WriteLine(LocalizableStrings.PostActionDescription, action.Description); 189Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red()); 191Reporter.Output.WriteLine(LocalizableStrings.PostActionPromptRequest, YesAnswer, NoAnswer); 206Reporter.Output.WriteLine(LocalizableStrings.PostActionInvalidInputRePrompt, input, YesAnswer, NoAnswer); 227Reporter.Error.WriteLine(LocalizableStrings.PostActionFailedInstructionHeader); 233Reporter.Error.WriteLine(LocalizableStrings.PostActionFailedInstructionHeader); 234Reporter.Verbose.WriteLine(LocalizableStrings.Generic_Details, e.ToString()); 249IReporter stream = useErrorOutput ? Reporter.Error : Reporter.Output;
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (14)
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)); 168Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Succeeded, 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)); 259Reporter.Verbose.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Verbose_AttemptingToFindJsonFile, matchPattern, directory)); 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 (5)
55Reporter.Error.WriteLine(LocalizableStrings.UnableToSetPermissions, entry.Key, file); 56Reporter.Verbose.WriteLine("Unable to start sub-process."); 65Reporter.Error.WriteLine(LocalizableStrings.UnableToSetPermissions, entry.Key, file); 71Reporter.Error.WriteLine(LocalizableStrings.UnableToSetPermissions, entry.Key, file); 72Reporter.Verbose.WriteLine(LocalizableStrings.Generic_Details, ex.ToString());
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (3)
18Reporter.Output.WriteLine(LocalizableStrings.PostActionDescription, actionConfig.Description); 19Reporter.Output.WriteLine(LocalizableStrings.PostActionInstructions, actionConfig.ManualInstructions); 24Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\ProcessStartPostActionProcessor.cs (12)
21Reporter.Error.WriteLine(LocalizableStrings.PostAction_ProcessStartProcessor_Error_ConfigMissingExecutable); 50Reporter.Output.WriteLine(LocalizableStrings.RunningCommand, command); 66Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 67Reporter.Verbose.WriteLine("Unable to start sub-process."); 75Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 76Reporter.Error.WriteCommandOutput(commandResult); 77Reporter.Error.WriteLine(string.Empty); 82Reporter.Output.WriteLine(LocalizableStrings.CommandSucceeded); 88Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 89Reporter.Error.WriteLine(ex.Message); 90Reporter.Error.WriteLine(string.Empty); 91Reporter.Verbose.WriteLine(LocalizableStrings.Generic_Details, ex.ToString());
TemplateInvoker.cs (35)
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()); 202Reporter.Output.WriteLine(LocalizableStrings.CreateSuccessful, resultTemplateName); 206Reporter.Output.WriteLine(LocalizableStrings.FileActionsWouldHaveBeenTaken); 211Reporter.Output.WriteLine($" {GetChangeString(change.ChangeKind)}: {AdjustReportedPath(change.TargetRelativePath)}"); 218Reporter.Output.WriteLine(LocalizableStrings.ThirdPartyNotices, templateArgs.Template.ThirdPartyNotices); 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(); 241Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_RebuildCache); 242Reporter.Output.WriteCommand(Example.For<NewCommand>(templateArgs.ParseResult).WithOption(c => c.Definition.DebugRebuildCacheOption)); 243Reporter.Output.WriteLine(); 257Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_Uninstall); 258Reporter.Output.WriteCommand(Example.For<UninstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName)); 259Reporter.Output.WriteLine(); 260Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_Install); 261Reporter.Output.WriteCommand(Example.For<InstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName)); 262Reporter.Output.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 (30)
54Reporter.Output.WriteLine(LocalizableStrings.TemplatesFoundMatchingInputParameters, GetInputParametersString(args)); 55Reporter.Output.WriteLine(); 63reporter: Reporter.Output, 73Reporter.Output.WriteLine(LocalizableStrings.NoTemplatesFound); 74Reporter.Output.WriteLine(); 76Reporter.Output.WriteLine(LocalizableStrings.Generic_CommandHints_Search); 77Reporter.Output.WriteCommand( 82Reporter.Output.WriteLine(); 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(); 153Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_Description, Example.For<NewCommand>(args.ParseResult)); 155Reporter.Output.WriteLine(); 157Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_TemplatesHeader, Example.For<NewCommand>(args.ParseResult)); 162reporter: Reporter.Output); 164Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ExampleHeader); 165Reporter.Output.WriteCommand( 170Reporter.Output.WriteLine(); 172Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_DisplayOptionsHint); 173Reporter.Output.WriteCommand( 179Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ListTemplatesHint); 181Reporter.Output.WriteCommand( 186Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_SearchTemplatesHint); 187Reporter.Output.WriteCommand( 193Reporter.Output.WriteLine();
TemplatePackageCoordinator.cs (49)
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); 146Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailable, displayString); 148Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 149Reporter.Output.WriteCommand( 154Reporter.Output.WriteLine(); 160Reporter.Error.WriteLine(); 166Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_BuiltInPackageAvailable, $"{packageId}@{version}", provider); 167Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage); 168Reporter.Output.WriteCommand( 219Reporter.Output.WriteLine(string.Format(LocalizableStrings.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow()); 230Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Error_FoundNoPackagesToInstall); 242Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Error_SameInstallRequests, installRequest.PackageIdentifier); 246Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackagesToBeInstalled); 249Reporter.Output.WriteLine(installRequest.DisplayName.Indent()); 251Reporter.Output.WriteLine(); 316Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_PackagesToBeUpdated); 319Reporter.Output.WriteLine($"{update.TemplatePackage!.Identifier}@{update.LatestVersion}".Indent()); 321Reporter.Output.WriteLine(); 347Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_AllPackagesAreUpToDate); 379Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_Success, uninstallResult.TemplatePackage.DisplayName); 383Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_GenericError, uninstallResult.TemplatePackage.DisplayName, uninstallResult.ErrorMessage); 439DisplayLocalPackageMetadata(localPackage, Reporter.Output); 442DisplayPackageTemplateList(templatesToDisplay, Reporter.Output); 464DisplayNuGetPackageMetadata(nuGetPackageMetadata, Reporter.Output); 468DisplayPackageTemplateList(templatesToDisplay, Reporter.Output); 473Reporter.Output.WriteLine( 597Reporter.Verbose.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Verbose_NuGetCredentialServiceError, ex.ToString()); 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( 894Reporter.Verbose.WriteLine($"Custom source {source} is already loaded from default configuration."); 900Reporter.Output.WriteLine(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResource, source));
TemplatePackageDisplay.cs (22)
229Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_InstalledItems); 233Reporter.Output.WriteLine(LocalizableStrings.NoItems); 239Reporter.Output.WriteLine($"{managedSource.Identifier}".Indent()); 242Reporter.Output.WriteLine($"{LocalizableStrings.Version} {managedSource.Version}".Indent(level: 2)); 248Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_DetailsHeader.Indent(level: 2)); 251Reporter.Output.WriteLine($"{detail.Key}: {GetFormattedValue(detail.Value)}".Indent(level: 3)); 258Reporter.Output.WriteLine($"{LocalizableStrings.Templates}:".Indent(level: 2)); 261Reporter.Output.WriteLine(info.GetDisplayName().Indent(level: 3)); 266Reporter.Output.WriteLine($"{LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_UninstallCommandHint}".Indent(level: 2)); 267Reporter.Output.WriteCommand( 274Reporter.Output.WriteLine(); 285Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailablePackages); 299Reporter.Output.WriteLine(formatter.Layout()); 300Reporter.Output.WriteLine(); 302Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 303Reporter.Output.WriteCommand( 308Reporter.Output.WriteCommand( 313Reporter.Output.WriteLine(); 314Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAllCommandHeader); 315Reporter.Output.WriteCommand( 319Reporter.Output.WriteLine(); 331Reporter.Error.WriteLine();
TemplateSearch\CliHostSearchCacheData.cs (2)
44Reporter.Verbose.WriteLine($"Error deserializing the cli host specific template data for template {data.Key}, details:{ex}"); 51Reporter.Verbose.WriteLine($"Error deserializing the cli host specific template data {cacheObject}, details:{ex}");
TemplateSearch\CliTemplateSearchCoordinator.cs (21)
46Reporter.Output.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_SearchInProgress); 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()); 73Reporter.Output.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_MatchesFromSource, result.Provider.Factory.DisplayName); 83Reporter.Error.WriteLine( 90Reporter.Output.WriteLine(); 94Reporter.Output.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_InstallHelp); 95Reporter.Output.WriteCommand( 100Reporter.Output.WriteLine(LocalizableStrings.Generic_ExampleHeader); 101Reporter.Output.WriteCommand( 182Reporter.Output.WriteLine(LocalizableStrings.TemplatesFoundMatchingInputParameters, GetInputParametersString(commandArgs)); 183Reporter.Output.WriteLine(); 203Reporter.Output.WriteLine(formatter.Layout()); 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());