1 write to Output
Microsoft.DotNet.Cli.Utils (1)
Reporter.cs (1)
96
Output
= CommandLoggingContext.OutputEnabled ? s_outputReporter : NullReporter;
181 references to Output
dotnet-aot (49)
parent\dotnet\Commands\Run\AotRunCommand.cs (1)
187
Reporter.
Output
.WriteLine(CliCommandStrings.RunCommandBuilding);
parent\dotnet\Commands\Run\LaunchProfileReadResult.cs (1)
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)
54
Reporter.
Output
.WriteLine(CliStrings.NoProjectsFound);
61
Reporter.
Output
.WriteLine(header);
62
Reporter.
Output
.WriteLine(new string('-', header.Length));
65
Reporter.
Output
.WriteLine(slnProject);
parent\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
22
_reporter = reporter ?? Reporter.
Output
;
parent\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (4)
93
Reporter.
Output
.WriteLine(CliStrings.ProjectNotFoundInTheSolution, projectPath);
99
Reporter.
Output
.WriteLine(CliStrings.ProjectRemovedFromTheSolution, projectPath);
161
Reporter.
Output
.WriteLine(CliStrings.ProjectRemovedFromTheSolution, normalizedPath);
165
Reporter.
Output
.WriteLine(CliStrings.ProjectNotFoundInTheSolution, normalizedPath);
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (4)
240
Utils.Reporter.
Output
.WriteLine(title);
249
Utils.Reporter.
Output
.WriteLine();
250
Utils.Reporter.
Output
.WriteLine((groupedModules.Key ? CliCommandStrings.HelpUnavailableOptions : CliCommandStrings.HelpUnavailableExtensionOptions).Yellow());
273
Utils.Reporter.
Output
.WriteLine($"{missing}\n{line}\n");
parent\dotnet\Commands\Test\MTP\TestModulesFilterHandler.cs (2)
48
Reporter.
Output
.WriteLine(string.Format(CliCommandStrings.CmdNonExistentRootDirectoryErrorDescription, _testModulesRoot).Yellow());
55
Reporter.
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)
18
private readonly SearchResultPrinter _searchResultPrinter = new(Reporter.
Output
);
25
Reporter.
Output
.WriteLine(CliCommandStrings.NeedNuGetInConfig);
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
34
_reporter = reporter ?? Reporter.
Output
;
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
162
reporter ??= Reporter.
Output
;
parent\dotnet\MsbuildProject.cs (4)
105
Reporter.
Output
.WriteLine(string.Format(
114
Reporter.
Output
.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, @ref));
247
Reporter.
Output
.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, r));
253
Reporter.
Output
.WriteLine(string.Format(
parent\dotnet\NugetPackageDownloader\NuGetConsoleLogger.cs (3)
67
Reporter.
Output
.WriteLine($"[NuGet Manager] [Info] {data}");
72
Reporter.
Output
.WriteLine($"[NuGet Manager] [Info Summary] {data}");
77
Reporter.
Output
.WriteLine($"[NuGet Manager] {data}");
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
79
_reporter = reporter ?? Reporter.
Output
;
parent\dotnet\ParserOptionActions.cs (15)
128
Reporter.
Output
.WriteLine(Product.Version);
149
Reporter.
Output
.WriteLine($"{LocalizableStrings.DotNetSdkInfoLabel}");
150
Reporter.
Output
.WriteLine($" Version: {Product.Version}");
151
Reporter.
Output
.WriteLine($" Commit: {commitSha}");
152
Reporter.
Output
.WriteLine($" Workload version: {WorkloadInfoHelper.GetWorkloadsVersion()}");
153
Reporter.
Output
.WriteLine($" MSBuild version: {MSBuildForwardingAppWithoutLogging.MSBuildVersion}");
154
Reporter.
Output
.WriteLine();
155
Reporter.
Output
.WriteLine($"{LocalizableStrings.DotNetRuntimeInfoLabel}");
156
Reporter.
Output
.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}");
157
Reporter.
Output
.WriteLine($" OS Version: {RuntimeEnvironment.OperatingSystemVersion}");
158
Reporter.
Output
.WriteLine($" OS Platform: {RuntimeEnvironment.OperatingSystemPlatform}");
163
Reporter.
Output
.WriteLine($" RID: {RuntimeInformation.RuntimeIdentifier}");
169
Reporter.
Output
.WriteLine($" Base Path: {SdkPaths.SdkDirectory}");
173
Reporter.
Output
.WriteLine();
174
Reporter.
Output
.WriteLine($"{LocalizableStrings.DotnetWorkloadInfoLabel}");
parent\dotnet\ShellShim\EnvironmentPathFactory.cs (3)
39
Reporter.
Output
,
47
reporter: Reporter.
Output
,
64
reporter: Reporter.
Output
,
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
138
_stdOut?.ForwardTo(writeLine: Reporter.
Output
.WriteLine);
Microsoft.TemplateEngine.Cli (131)
Commands\BaseCommand.cs (14)
127
Reporter.
Output
.WriteLine(LocalizableStrings.Commands_TemplateShortNameCommandConflict_Info, usedCommandAlias);
131
Reporter.
Output
.WriteCommand(example);
132
Reporter.
Output
.WriteLine();
145
Reporter.
Output
.WriteLine(string.Format(
150
Reporter.
Output
.WriteLine(LocalizableStrings.Commands_Warning_DeprecatedCommand_Info.Yellow());
151
Reporter.
Output
.WriteCommand(Example.For<TNewCommand>(parseResult).WithHelpOption().ToString().Yellow());
152
Reporter.
Output
.WriteLine();
177
Reporter.
Output
.WriteLine("Attach to the process and press any key");
207
Reporter.
Output
.WriteLine(LocalizableStrings.CurrentConfiguration);
208
Reporter.
Output
.WriteLine(" ");
218
Reporter.
Output
.WriteLine(mountPointsFormatter.Layout());
219
Reporter.
Output
.WriteLine();
229
Reporter.
Output
.WriteLine(generatorsFormatter.Layout());
230
Reporter.
Output
.WriteLine();
Commands\create\InstantiateCommand.Help.cs (4)
39
HandleNoMatchingTemplateGroup(instantiateCommandArgs, allTemplateGroups, Reporter.
Output
);
44
HandleAmbiguousTemplateGroup(environmentSettings, templatePackageManager, selectedTemplateGroups, Reporter.
Output
);
59
HandleNoTemplateFoundResult(instantiateCommandArgs, environmentSettings, templatePackageManager, templateGroup, Reporter.
Output
);
66
Reporter.
Output
,
Commands\create\TemplateCommand.cs (3)
169
TemplatePackageDisplay templatePackageDisplay = new(Reporter.
Output
, Reporter.Error);
196
Reporter.
Output
.WriteLine();
238
var reporter = templateArgs.IsForceFlagSpecified ? Reporter.
Output
: Reporter.Error;
NuGet\CliNuGetLogger.cs (3)
53
Reporter.
Output
.WriteLine($"[NuGet Manager] [Info] {data}");
58
Reporter.
Output
.WriteLine($"[NuGet Manager] [Info Summary] {data}");
63
Reporter.
Output
.WriteLine($"[NuGet Manager] {data}");
PostActionDispatcher.cs (11)
88
Reporter.
Output
.WriteLine();
89
Reporter.
Output
.WriteLine(LocalizableStrings.ProcessingPostActions);
101
Reporter.
Output
.WriteLine(LocalizableStrings.ActionWouldHaveBeenTakenAutomatically);
104
Reporter.
Output
.WriteLine(action.Description.Indent());
170
Reporter.
Output
.WriteLine();
180
Reporter.
Output
.WriteLine(LocalizableStrings.PostActionPromptHeader);
183
Reporter.
Output
.WriteLine(LocalizableStrings.PostActionDescription, action.Description);
189
Reporter.
Output
.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
191
Reporter.
Output
.WriteLine(LocalizableStrings.PostActionPromptRequest, YesAnswer, NoAnswer);
206
Reporter.
Output
.WriteLine(LocalizableStrings.PostActionInvalidInputRePrompt, input, YesAnswer, NoAnswer);
249
IReporter stream = useErrorOutput ? Reporter.Error : Reporter.
Output
;
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (1)
168
Reporter.
Output
.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Succeeded, jsonFileName));
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (3)
18
Reporter.
Output
.WriteLine(LocalizableStrings.PostActionDescription, actionConfig.Description);
19
Reporter.
Output
.WriteLine(LocalizableStrings.PostActionInstructions, actionConfig.ManualInstructions);
24
Reporter.
Output
.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\ProcessStartPostActionProcessor.cs (2)
50
Reporter.
Output
.WriteLine(LocalizableStrings.RunningCommand, command);
82
Reporter.
Output
.WriteLine(LocalizableStrings.CommandSucceeded);
TemplateInvoker.cs (13)
202
Reporter.
Output
.WriteLine(LocalizableStrings.CreateSuccessful, resultTemplateName);
206
Reporter.
Output
.WriteLine(LocalizableStrings.FileActionsWouldHaveBeenTaken);
211
Reporter.
Output
.WriteLine($" {GetChangeString(change.ChangeKind)}: {AdjustReportedPath(change.TargetRelativePath)}");
218
Reporter.
Output
.WriteLine(LocalizableStrings.ThirdPartyNotices, templateArgs.Template.ThirdPartyNotices);
241
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateCreator_Hint_RebuildCache);
242
Reporter.
Output
.WriteCommand(Example.For<NewCommand>(templateArgs.ParseResult).WithOption(c => c.Definition.DebugRebuildCacheOption));
243
Reporter.
Output
.WriteLine();
257
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateCreator_Hint_Uninstall);
258
Reporter.
Output
.WriteCommand(Example.For<UninstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName));
259
Reporter.
Output
.WriteLine();
260
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateCreator_Hint_Install);
261
Reporter.
Output
.WriteCommand(Example.For<InstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName));
262
Reporter.
Output
.WriteLine();
TemplateListCoordinator.cs (22)
54
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatesFoundMatchingInputParameters, GetInputParametersString(args));
55
Reporter.
Output
.WriteLine();
63
reporter: Reporter.
Output
,
73
Reporter.
Output
.WriteLine(LocalizableStrings.NoTemplatesFound);
74
Reporter.
Output
.WriteLine();
76
Reporter.
Output
.WriteLine(LocalizableStrings.Generic_CommandHints_Search);
77
Reporter.
Output
.WriteCommand(
82
Reporter.
Output
.WriteLine();
153
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_Description, Example.For<NewCommand>(args.ParseResult));
155
Reporter.
Output
.WriteLine();
157
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_TemplatesHeader, Example.For<NewCommand>(args.ParseResult));
162
reporter: Reporter.
Output
);
164
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ExampleHeader);
165
Reporter.
Output
.WriteCommand(
170
Reporter.
Output
.WriteLine();
172
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_DisplayOptionsHint);
173
Reporter.
Output
.WriteCommand(
179
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ListTemplatesHint);
181
Reporter.
Output
.WriteCommand(
186
Reporter.
Output
.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_SearchTemplatesHint);
187
Reporter.
Output
.WriteCommand(
193
Reporter.
Output
.WriteLine();
TemplatePackageCoordinator.cs (24)
44
_templatePackageDisplay = new TemplatePackageDisplay(Reporter.
Output
, Reporter.Error);
146
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailable, displayString);
148
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
149
Reporter.
Output
.WriteCommand(
154
Reporter.
Output
.WriteLine();
166
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_BuiltInPackageAvailable, $"{packageId}@{version}", provider);
167
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage);
168
Reporter.
Output
.WriteCommand(
219
Reporter.
Output
.WriteLine(string.Format(LocalizableStrings.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow());
246
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackagesToBeInstalled);
249
Reporter.
Output
.WriteLine(installRequest.DisplayName.Indent());
251
Reporter.
Output
.WriteLine();
316
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_PackagesToBeUpdated);
319
Reporter.
Output
.WriteLine($"{update.TemplatePackage!.Identifier}@{update.LatestVersion}".Indent());
321
Reporter.
Output
.WriteLine();
347
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_AllPackagesAreUpToDate);
379
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_Success, uninstallResult.TemplatePackage.DisplayName);
439
DisplayLocalPackageMetadata(localPackage, Reporter.
Output
);
442
DisplayPackageTemplateList(templatesToDisplay, Reporter.
Output
);
464
DisplayNuGetPackageMetadata(nuGetPackageMetadata, Reporter.
Output
);
468
DisplayPackageTemplateList(templatesToDisplay, Reporter.
Output
);
473
Reporter.
Output
.WriteLine(
631
IReporter reporter = args.Force ? Reporter.
Output
: Reporter.Error;
900
Reporter.
Output
.WriteLine(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResource, source));
TemplatePackageDisplay.cs (21)
229
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_InstalledItems);
233
Reporter.
Output
.WriteLine(LocalizableStrings.NoItems);
239
Reporter.
Output
.WriteLine($"{managedSource.Identifier}".Indent());
242
Reporter.
Output
.WriteLine($"{LocalizableStrings.Version} {managedSource.Version}".Indent(level: 2));
248
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_DetailsHeader.Indent(level: 2));
251
Reporter.
Output
.WriteLine($"{detail.Key}: {GetFormattedValue(detail.Value)}".Indent(level: 3));
258
Reporter.
Output
.WriteLine($"{LocalizableStrings.Templates}:".Indent(level: 2));
261
Reporter.
Output
.WriteLine(info.GetDisplayName().Indent(level: 3));
266
Reporter.
Output
.WriteLine($"{LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_UninstallCommandHint}".Indent(level: 2));
267
Reporter.
Output
.WriteCommand(
274
Reporter.
Output
.WriteLine();
285
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailablePackages);
299
Reporter.
Output
.WriteLine(formatter.Layout());
300
Reporter.
Output
.WriteLine();
302
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
303
Reporter.
Output
.WriteCommand(
308
Reporter.
Output
.WriteCommand(
313
Reporter.
Output
.WriteLine();
314
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAllCommandHeader);
315
Reporter.
Output
.WriteCommand(
319
Reporter.
Output
.WriteLine();
TemplateSearch\CliTemplateSearchCoordinator.cs (10)
46
Reporter.
Output
.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_SearchInProgress);
73
Reporter.
Output
.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_MatchesFromSource, result.Provider.Factory.DisplayName);
90
Reporter.
Output
.WriteLine();
94
Reporter.
Output
.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_InstallHelp);
95
Reporter.
Output
.WriteCommand(
100
Reporter.
Output
.WriteLine(LocalizableStrings.Generic_ExampleHeader);
101
Reporter.
Output
.WriteCommand(
182
Reporter.
Output
.WriteLine(LocalizableStrings.TemplatesFoundMatchingInputParameters, GetInputParametersString(commandArgs));
183
Reporter.
Output
.WriteLine();
203
Reporter.
Output
.WriteLine(formatter.Layout());