2 implementations of WriteLine
dotnet-aot (1)
parent\dotnet\Commands\Workload\Install\NullReporter.cs (1)
11
public void
WriteLine
(string message) { }
Microsoft.DotNet.Cli.Utils (1)
Reporter.cs (1)
113
public void
WriteLine
(string message)
347 references to WriteLine
dotnet-aot (130)
parent\dotnet\CliCompletion.cs (1)
30
Reporter.Verbose.
WriteLine
($"Exception occurred while getting completions: {e}");
parent\dotnet\CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (3)
41
Reporter.Verbose.
WriteLine
(string.Format(
51
Reporter.Verbose.
WriteLine
(string.Format(
69
Reporter.Verbose.
WriteLine
(string.Format(
parent\dotnet\Commands\Run\AotRunCommand.cs (4)
187
Reporter.Output.
WriteLine
(CliCommandStrings.RunCommandBuilding);
189
Reporter.Verbose.
WriteLine
($"AOT run tier: {runTier} ({decisionReason}).");
314
Reporter.Verbose.
WriteLine
($"Failed to read the runtime version: {exception}");
443
Reporter.Verbose.
WriteLine
($"AOT run is falling back to the managed CLI because {reason}.");
parent\dotnet\Commands\Run\FileBasedAppCacheInfo.cs (3)
59
Reporter.Verbose.
WriteLine
("CSC auxiliary files can NOT be reused due to the same reason build is needed.");
65
Reporter.Verbose.
WriteLine
("CSC auxiliary files can NOT be reused because previous build level was not CSC " +
70
Reporter.Verbose.
WriteLine
("CSC auxiliary files can be reused.");
parent\dotnet\Commands\Run\FileBasedAppRunPlan.cs (32)
96
Reporter.Verbose.
WriteLine
("Falling back to the managed CLI because the build success cache does not exist.");
109
Reporter.Verbose.
WriteLine
("Falling back to the managed CLI because the previous build was not synthetic CSC.");
115
Reporter.Verbose.
WriteLine
("Falling back to the managed CLI because the entry point file is missing.");
206
Reporter.Verbose.
WriteLine
("Building because --no-cache was specified.");
213
Reporter.Verbose.
WriteLine
("No need to build, the output is up to date. Cache: " + inputs.ArtifactsPath);
224
Reporter.Verbose.
WriteLine
("We have CSC arguments from previous run. Skipping MSBuild and using CSC only.");
238
Reporter.Verbose.
WriteLine
("Using MSBuild because there are directives in the source file.");
246
Reporter.Verbose.
WriteLine
($"Using MSBuild because there are global properties, for example '{exampleKey}={exampleValue}'.");
253
Reporter.Verbose.
WriteLine
($"Using MSBuild because there are implicit build files, for example '{exampleMSBuildFile}'.");
261
Reporter.Verbose.
WriteLine
($"Using MSBuild because NuGet package file does not exist: {filePath}");
266
Reporter.Verbose.
WriteLine
("Skipping MSBuild and using CSC only.");
300
Reporter.Verbose.
WriteLine
($"Failed to deserialize cache entry ({path}): {exception}");
366
Reporter.Verbose.
WriteLine
($"Cannot touch folder '{artifactsPath}': {exception}");
381
Reporter.Verbose.
WriteLine
("Skipping computing cache because there are project or ref directives.");
421
Reporter.Verbose.
WriteLine
("Building because cache file does not exist: " + successCacheFile.FullName);
428
Reporter.Verbose.
WriteLine
("Building because start cache file does not exist: " + startCacheFile.FullName);
435
Reporter.Verbose.
WriteLine
("Building because start cache file is newer than success cache file (previous build likely failed): " + startCacheFile.FullName);
445
Reporter.Verbose.
WriteLine
("Building because previous cache entry could not be deserialized: " + successCacheFile.FullName);
455
Reporter.Verbose.
WriteLine
("Building because the run output is missing: " + previousRunCommand);
463
Reporter.Verbose.
WriteLine
($"Building because previous SDK version ({previousCacheEntry.SdkVersion}) does not match current ({cacheEntry.SdkVersion}): {successCacheFile.FullName}");
470
Reporter.Verbose.
WriteLine
($"Building because previous runtime version ({previousCacheEntry.RuntimeVersion}) does not match current ({cacheEntry.RuntimeVersion}): {successCacheFile.FullName}");
477
Reporter.Verbose.
WriteLine
($"Building because previous global properties count ({previousCacheEntry.GlobalProperties.Count}) does not match current count ({cacheEntry.GlobalProperties.Count}): {successCacheFile.FullName}");
485
Reporter.Verbose.
WriteLine
($"Building because previous global property \"{key}\" ({otherValue}) does not match current ({value}): {successCacheFile.FullName}");
494
Reporter.Verbose.
WriteLine
("Building because entry point file is missing: " + entryPointFile.FullName);
501
Reporter.Verbose.
WriteLine
($"Building because resolved entry point file path changed from '{previousCacheEntry.ResolvedEntryPointFilePath}' to '{cacheEntry.ResolvedEntryPointFilePath}': {successCacheFile.FullName}");
510
Reporter.Verbose.
WriteLine
("Compiling because entry point file is modified: " + entryPointFile.FullName);
511
Reporter.Verbose.
WriteLine
(reasonToNotReuseCscArguments);
521
Reporter.Verbose.
WriteLine
("Building because implicit build file is missing or modified: " + implicitBuildFileInfo.FullName);
531
Reporter.Verbose.
WriteLine
("Building because new implicit build file is present: " + implicitBuildFilePath);
547
Reporter.Verbose.
WriteLine
($"Building because additional source file '{additionalSource.Original}' resolved path changed from '{additionalSource.Resolved}' to '{resolvedFileInfo.FullName}': {successCacheFile.FullName}");
553
Reporter.Verbose.
WriteLine
("Building because additional source file is missing or modified: " + resolvedFileInfo.FullName);
562
Reporter.Verbose.
WriteLine
("Compiling because entry point file is modified: " + entryPointFile.FullName);
parent\dotnet\Commands\Run\LaunchProfileReadResult.cs (1)
30
(isError ? Reporter.Error : Reporter.Output).
WriteLine
(message);
parent\dotnet\Commands\Sdk\Check\RuntimeOutputWriter.cs (2)
20
_reporter.
WriteLine
(CliCommandStrings.RuntimeSectionHeader);
27
table.PrintRows(_runtimeInfo.OrderBy(sdk => sdk.Version), l => _reporter.
WriteLine
(l));
parent\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (2)
46
_reporter.
WriteLine
(_sdkCheckConfig.CommandOutputReplacementString);
64
_reporter.
WriteLine
(CliCommandStrings.CommandFooter);
parent\dotnet\Commands\Sdk\Check\SdkOutputWriter.cs (3)
20
_reporter.
WriteLine
(CliCommandStrings.SdkSectionHeader);
26
table.PrintRows(_sdkInfo.OrderBy(sdk => sdk.Version), l => _reporter.
WriteLine
(l));
32
_reporter.
WriteLine
(string.Format(CliCommandStrings.NewFeatureBandMessage, NewestFeatureBandAvailable()));
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\Test\AotTestCommand.cs (1)
38
Reporter.Verbose.
WriteLine
("AOT test tier: TestModules.");
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (3)
240
Utils.Reporter.Output.
WriteLine
(title);
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\TestApplication.cs (1)
1137
Reporter.Error.
WriteLine
(messageBuilder.ToString());
parent\dotnet\Commands\Test\MTP\TestApplicationActionQueue.cs (1)
132
Reporter.Error.
WriteLine
(string.Format(CliCommandStrings.ErrorRunningTestModule, module.RunProperties?.Command, module.RunProperties?.Arguments, exAsString));
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 (2)
77
table.PrintRows(packageEnumerable, l => _reporter.
WriteLine
(l));
93
_reporter.
WriteLine
(jsonText);
parent\dotnet\Commands\Tool\Search\SearchResultPrinter.cs (13)
19
_reporter.
WriteLine
(CliCommandStrings.NoResult);
42
table.PrintRows(searchResultPackages, l => _reporter.
WriteLine
(l));
48
_reporter.
WriteLine
("----------------".Bold());
49
_reporter.
WriteLine
(p.Id.ToString());
50
_reporter.
WriteLine
($"{CliCommandStrings.LatestVersion}: ".Bold() + p.LatestVersion);
53
_reporter.
WriteLine
($"{CliCommandStrings.Authors}: ".Bold() + string.Join(", ", p.Authors));
58
_reporter.
WriteLine
($"{CliCommandStrings.Tags}: ".Bold() + string.Join(", ", p.Tags));
61
_reporter.
WriteLine
($"{CliCommandStrings.Downloads}: ".Bold() + p.TotalDownloads);
64
_reporter.
WriteLine
($"{CliCommandStrings.Verified}: ".Bold() + p.Verified.ToString());
68
_reporter.
WriteLine
($"{CliCommandStrings.Summary}: ".Bold() + p.Summary);
73
_reporter.
WriteLine
($"{CliCommandStrings.Description}: ".Bold() + p.Description);
78
_reporter.
WriteLine
($"{CliCommandStrings.Versions}: ".Bold());
81
_reporter.
WriteLine
(
parent\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (1)
25
Reporter.Output.
WriteLine
(CliCommandStrings.NeedNuGetInConfig);
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
57
_reporter.
WriteLine
(warningMessage.Yellow());
60
_reporter.
WriteLine
(
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (11)
171
reporter.
WriteLine
(indent + configurationMessage);
175
reporter.
WriteLine
(indent + string.Format(CliCommandStrings.WorkloadSetFromGlobalJsonNotInstalled, versionInfo.Version, versionInfo.GlobalJsonPath));
179
reporter.
WriteLine
(indent + CliCommandStrings.ShouldInstallAWorkloadSet);
185
reporter.
WriteLine
($" Workload version: {GetWorkloadsVersion()}");
199
reporter.
WriteLine
(CliCommandStrings.NoWorkloadsInstalledInfoWarning);
213
reporter.
WriteLine
($" [{workload.Key}]");
216
reporter.
WriteLine
($" {workload.Value,align}");
219
reporter.
WriteLine
($" {workloadManifest.Version + '/' + workloadFeatureBand,align}");
222
reporter.
WriteLine
($" {workloadManifest.ManifestPath,align}");
225
reporter.
WriteLine
($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.Version), dotnetPath).ToString(),align}"
227
reporter.
WriteLine
("");
parent\dotnet\Extensions\ParseResultExtensions.cs (1)
193
Reporter.Error.
WriteLine
(CliStrings.RequiredCommandNotPassed.Red());
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 (7)
57
Reporter.Verbose.
WriteLine
($"[NuGet Manager] [DEBUG] {data}");
62
Reporter.Error.
WriteLine
($"[NuGet Manager] [Error] {data}");
67
Reporter.Output.
WriteLine
($"[NuGet Manager] [Info] {data}");
72
Reporter.Output.
WriteLine
($"[NuGet Manager] [Info Summary] {data}");
77
Reporter.Output.
WriteLine
($"[NuGet Manager] {data}");
82
Reporter.Verbose.
WriteLine
($"[NuGet Manager] [Verbose] {data}");
87
Reporter.Error.
WriteLine
($"[NuGet Manager] [Warning] {data}");
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
258
_reporter.
WriteLine
(CliStrings.NuGetPackageSignatureVerificationSkipped);
parent\dotnet\Parser.cs (4)
376
Reporter.Error.
WriteLine
(CommandLoggingContext.IsVerbose ?
382
Reporter.Error.
WriteLine
(CommandLoggingContext.IsVerbose ?
389
Reporter.Error.
WriteLine
(CommandLoggingContext.IsVerbose ?
396
Reporter.Error.
WriteLine
(CommandLoggingContext.IsVerbose ?
parent\dotnet\ParserOptionActions.cs (13)
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}");
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}");
174
Reporter.Output.
WriteLine
($"{LocalizableStrings.DotnetWorkloadInfoLabel}");
parent\dotnet\ShellShim\LinuxEnvironmentPath.cs (2)
68
_reporter.
WriteLine
(
74
_reporter.
WriteLine
(
parent\dotnet\ShellShim\OsxBashEnvironmentPath.cs (2)
56
_reporter.
WriteLine
(
62
_reporter.
WriteLine
(
parent\dotnet\ShellShim\OsxZshEnvironmentPathInstruction.cs (1)
38
_reporter.
WriteLine
(
parent\dotnet\ShellShim\WindowsEnvironmentPath.cs (3)
66
_reporter.
WriteLine
(
109
_reporter.
WriteLine
(CliStrings.EnvironmentPathWindowsNeedReopen);
113
_reporter.
WriteLine
(
Microsoft.DotNet.Cli.Utils (7)
Command.cs (7)
30
Reporter.Verbose.
WriteLine
(string.Format(
46
Reporter.Verbose.
WriteLine
($"> {Command.FormatProcessInfo(_process.StartInfo)}".White());
55
Reporter.Verbose.
WriteLine
(string.Format(
79
Reporter.Verbose.
WriteLine
(message.Green());
83
Reporter.Verbose.
WriteLine
(message.Red().Bold());
138
_stdOut?.ForwardTo(writeLine: Reporter.Output.
WriteLine
);
158
_stdErr?.ForwardTo(writeLine: Reporter.Error.
WriteLine
);
Microsoft.DotNet.Configurer (4)
DotnetFirstTimeUseConfigurer.cs (4)
59
_reporter.
WriteLine
(string.Format(LocalizableStrings.FirstTimeMessageWelcome, ParseDotNetVersion(productVersion), productVersion));
64
_reporter.
WriteLine
(LocalizableStrings.TelemetryMessage);
82
_reporter.
WriteLine
(LocalizableStrings.FirstTimeMessageAspNetCertificate);
89
_reporter.
WriteLine
(LocalizableStrings.FirstTimeMessageMoreInformation);
Microsoft.TemplateEngine.Cli (206)
Commands\AliasAssignmentCoordinator.cs (1)
161
Reporter.Verbose.
WriteLine
(string.Format(LocalizableStrings.AliasAssignmentCoordinator_Error_ShortAlias, parameter.Name, shortName, qualifiedShortName));
Commands\BaseCommand.cs (10)
145
Reporter.Output.
WriteLine
(string.Format(
150
Reporter.Output.
WriteLine
(LocalizableStrings.Commands_Warning_DeprecatedCommand_Info.Yellow());
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());
229
Reporter.Output.
WriteLine
(generatorsFormatter.Layout());
265
Reporter.Error.
WriteLine
(ex.Message.Bold().Red());
278
Reporter.Error.
WriteLine
(ex.Message.Bold().Red());
283
Reporter.Error.
WriteLine
(ex.StackTrace.Bold().Red());
Commands\CliPathInfo.cs (1)
47
Reporter.Verbose.
WriteLine
($"Global Settings Location: {definedSettingsLocation}");
Commands\create\InstantiateCommand.cs (16)
95
reporter.
WriteLine
(
114
reporter.
WriteLine
(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red());
128
reporter.
WriteLine
(formatter.Layout().Bold().Red());
129
reporter.
WriteLine
(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red());
212
reporter.
WriteLine
(HelpStrings.TableHeader_AmbiguousTemplatesList);
218
reporter.
WriteLine
(HelpStrings.Hint_AmbiguousLanguage);
227
reporter.
WriteLine
(HelpStrings.TableHeader_AmbiguousTemplatesList);
235
reporter.
WriteLine
(HelpStrings.Hint_AmbiguousType);
296
reporter.
WriteLine
(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red());
312
reporter.
WriteLine
(formatter.Layout().Bold().Red());
314
reporter.
WriteLine
(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red());
320
reporter.
WriteLine
(string.Format(LocalizableStrings.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().Red());
441
reporter.
WriteLine
(LocalizableStrings.InstantiateCommand_Info_TypoCorrection_Templates);
469
reporter.
WriteLine
(LocalizableStrings.InstantiateCommand_Info_TypoCorrection_Subcommands);
495
reporter.
WriteLine
(LocalizableStrings.Generic_CommandHints_List);
507
reporter.
WriteLine
(LocalizableStrings.Generic_CommandHints_Search);
Commands\create\InstantiateCommand.NoMatchHandling.cs (5)
142
reporter.
WriteLine
(InvalidOptionsListToString(invalidOptionsList, matchInfos).Bold().Red());
147
reporter.
WriteLine
(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().Red());
154
reporter.
WriteLine
(LocalizableStrings.InvalidParameterTemplateHint);
198
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().Red());
209
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.TemplateOptions_Error_AllowedValuesForOptionList, token.Value, allowedValues));
Commands\create\TemplateCommand.cs (2)
251
reporter.
WriteLine
(constraint.ToDisplayString().Indent());
262
reporter.
WriteLine
(LocalizableStrings.TemplateCommand_DisplayConstraintResults_Hint_TemplateNotUsable);
IReporterExtensions.cs (6)
22
reporter.
WriteLine
(command.Indent(indentLevel + 1));
32
reporter.
WriteLine
(LocalizableStrings.CommandOutput);
49
reporter.
WriteLine
("StdOut:");
50
reporter.
WriteLine
(string.IsNullOrWhiteSpace(output) ? LocalizableStrings.Generic_Empty : output);
58
reporter.
WriteLine
("StdErr:");
59
reporter.
WriteLine
(string.IsNullOrWhiteSpace(output) ? LocalizableStrings.Generic_Empty : output);
NuGet\CliNuGetLogger.cs (7)
43
Reporter.Verbose.
WriteLine
($"[NuGet Manager] [DEBUG] {data}");
48
Reporter.Error.
WriteLine
($"[NuGet Manager] [Error] {data}");
53
Reporter.Output.
WriteLine
($"[NuGet Manager] [Info] {data}");
58
Reporter.Output.
WriteLine
($"[NuGet Manager] [Info Summary] {data}");
63
Reporter.Output.
WriteLine
($"[NuGet Manager] {data}");
68
Reporter.Verbose.
WriteLine
($"[NuGet Manager] [Verbose] {data}");
73
Reporter.Error.
WriteLine
($"[NuGet Manager] [Warning] {data}");
PostActionDispatcher.cs (9)
89
Reporter.Output.
WriteLine
(LocalizableStrings.ProcessingPostActions);
101
Reporter.Output.
WriteLine
(LocalizableStrings.ActionWouldHaveBeenTakenAutomatically);
104
Reporter.Output.
WriteLine
(action.Description.Indent());
127
Reporter.Error.
WriteLine
(LocalizableStrings.PostActionDispatcher_Error_RunScriptNotAllowed);
180
Reporter.Output.
WriteLine
(LocalizableStrings.PostActionPromptHeader);
189
Reporter.Output.
WriteLine
(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
227
Reporter.Error.
WriteLine
(LocalizableStrings.PostActionFailedInstructionHeader);
233
Reporter.Error.
WriteLine
(LocalizableStrings.PostActionFailedInstructionHeader);
256
stream.
WriteLine
(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (14)
88
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, JsonFileNameArgument));
94
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, DetectRepoRoot));
100
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllDirectoriesInSearch));
108
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllParentDirectoriesInSearch));
124
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowFileCreationArgument));
130
Reporter.Error.
WriteLine
(LocalizableStrings.PostAction_ModifyJson_Error_NoJsonFile);
141
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_MultipleJsonFiles, jsonFileName));
168
Reporter.Output.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Succeeded, jsonFileName));
180
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_NullJson, fileContent));
186
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowPathCreationArgument));
194
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ParentPropertyPathInvalid, propertyPath));
259
Reporter.Verbose.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Verbose_AttemptingToFindJsonFile, matchPattern, directory));
312
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyNameArgument));
318
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyValueArgument));
PostActionProcessors\ChmodPostActionProcessor.cs (1)
56
Reporter.Verbose.
WriteLine
("Unable to start sub-process.");
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (1)
24
Reporter.Output.
WriteLine
(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\ProcessStartPostActionProcessor.cs (9)
21
Reporter.Error.
WriteLine
(LocalizableStrings.PostAction_ProcessStartProcessor_Error_ConfigMissingExecutable);
66
Reporter.Error.
WriteLine
(LocalizableStrings.CommandFailed);
67
Reporter.Verbose.
WriteLine
("Unable to start sub-process.");
75
Reporter.Error.
WriteLine
(LocalizableStrings.CommandFailed);
77
Reporter.Error.
WriteLine
(string.Empty);
82
Reporter.Output.
WriteLine
(LocalizableStrings.CommandSucceeded);
88
Reporter.Error.
WriteLine
(LocalizableStrings.CommandFailed);
89
Reporter.Error.
WriteLine
(ex.Message);
90
Reporter.Error.
WriteLine
(string.Empty);
TabularOutput\TemplateGroupDisplay.cs (1)
241
reporter.
WriteLine
(formatter.Layout());
TemplateInvoker.cs (23)
69
Reporter.Error.
WriteLine
(cx.Message.Bold().Red());
72
Reporter.Error.
WriteLine
(cx.InnerException.Message.Bold().Red());
80
Reporter.Error.
WriteLine
(ex.Message.Bold().Red());
139
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.InvalidNameParameter, printableChars, nonPrintableChars).Bold().Red());
181
Reporter.Error.
WriteLine
(cx.Message.Bold().Red());
184
Reporter.Error.
WriteLine
(cx.InnerException.Message.Bold().Red());
191
Reporter.Error.
WriteLine
(tae.Message.Bold().Red());
206
Reporter.Output.
WriteLine
(LocalizableStrings.FileActionsWouldHaveBeenTaken);
211
Reporter.Output.
WriteLine
($" {GetChangeString(change.ChangeKind)}: {AdjustReportedPath(change.TargetRelativePath)}");
224
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.CreateFailed, resultTemplateName, instantiateResult.ErrorMessage).Bold().Red());
235
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.MissingRequiredParameter, fixedMessage, resultTemplateName).Bold().Red());
239
Reporter.Error.
WriteLine
(LocalizableStrings.TemplateCreator_Error_TemplateNotFound.Bold().Red());
241
Reporter.Output.
WriteLine
(LocalizableStrings.TemplateCreator_Hint_RebuildCache);
257
Reporter.Output.
WriteLine
(LocalizableStrings.TemplateCreator_Hint_Uninstall);
260
Reporter.Output.
WriteLine
(LocalizableStrings.TemplateCreator_Hint_Install);
268
Reporter.Error.
WriteLine
($"{LocalizableStrings.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().Red());
269
Reporter.Error.
WriteLine
(LocalizableStrings.RunHelpForInformationAboutAcceptedParameters);
277
Reporter.Error.
WriteLine
(LocalizableStrings.DestructiveChangesNotification.Bold().Red());
286
Reporter.Error.
WriteLine
(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().Red());
290
Reporter.Error.
WriteLine
(
299
Reporter.Error.
WriteLine
(instantiateResult.ErrorMessage.Bold().Red());
303
Reporter.Error.
WriteLine
(LocalizableStrings.OperationCancelled.Bold().Red());
306
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.UnexpectedResult, Enum.GetName(typeof(CreationResultStatus), instantiateResult.Status), instantiateResult.ErrorMessage).Bold().Red());
TemplateListCoordinator.cs (10)
73
Reporter.Output.
WriteLine
(LocalizableStrings.NoTemplatesFound);
76
Reporter.Output.
WriteLine
(LocalizableStrings.Generic_CommandHints_Search);
88
Reporter.Error.
WriteLine
(
97
Reporter.Error.
WriteLine
(
109
Reporter.Error.
WriteLine
(
119
Reporter.Error.
WriteLine
(LocalizableStrings.Generic_CommandHints_Search);
164
Reporter.Output.
WriteLine
(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ExampleHeader);
172
Reporter.Output.
WriteLine
(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_DisplayOptionsHint);
179
Reporter.Output.
WriteLine
(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ListTemplatesHint);
186
Reporter.Output.
WriteLine
(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_SearchTemplatesHint);
TemplatePackageCoordinator.cs (40)
148
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
167
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage);
219
Reporter.Output.
WriteLine
(string.Format(LocalizableStrings.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow());
230
Reporter.Error.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Install_Error_FoundNoPackagesToInstall);
246
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackagesToBeInstalled);
249
Reporter.Output.
WriteLine
(installRequest.DisplayName.Indent());
316
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Update_Info_PackagesToBeUpdated);
319
Reporter.Output.
WriteLine
($"{update.TemplatePackage!.Identifier}@{update.LatestVersion}".Indent());
347
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Update_Info_AllPackagesAreUpToDate);
482
reporter.
WriteLine
($"{packageMetadata.Identity.Id}");
491
reporter.
WriteLine
($"{LocalizableStrings.DetailsCommand_Property_SourceFeed}: {sourceFeed}".Indent(1));
495
reporter.
WriteLine
($"{LocalizableStrings.DetailsCommand_Property_Authors}:".Indent(1));
500
reporter.
WriteLine
(author.Trim().Indent(2));
506
reporter.
WriteLine
($"{LocalizableStrings.DetailsCommand_Property_Owners}:".Indent(1));
511
reporter.
WriteLine
(AnsiExtensions.Url($"https://nuget.org/profiles/{owner.Trim()}", owner).Indent(2));
515
reporter.
WriteLine
($"{LocalizableStrings.DetailsCommand_Property_LicenseMetadata}:".Indent(1));
521
reporter.
WriteLine
(
529
reporter.
WriteLine
(
537
reporter.
WriteLine
(
544
reporter.
WriteLine
($"{package.Identifier}");
552
reporter.
WriteLine
($"{LocalizableStrings.DetailsCommand_Property_Authors}:".Indent(1));
557
reporter.
WriteLine
(author.Trim().Indent(2));
566
reporter.
WriteLine
(
573
reporter.
WriteLine
($"{LocalizableStrings.DetailsCommand_Property_Templates}:".Indent(1));
586
reporter.
WriteLine
(formatter.Layout(2));
605
reporter.
WriteLine
($"{metadataName}: {metadataEntry}".Indent(indent));
633
reporter.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Install_Info_OverrideNotice);
634
reporter.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackageIsAvailable);
637
reporter.
WriteLine
($"{request.PackageInfo.Id}@{request.PackageInfo.Version}".Indent());
719
Reporter.Error.
WriteLine
(
734
Reporter.Error.
WriteLine
(
740
Reporter.Error.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_UninstallCommandHeader);
761
Reporter.Error.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader);
770
Reporter.Error.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader);
824
Reporter.Error.
WriteLine
(
832
Reporter.Error.
WriteLine
(
839
Reporter.Error.
WriteLine
(
846
Reporter.Error.
WriteLine
(
894
Reporter.Verbose.
WriteLine
($"Custom source {source} is already loaded from default configuration.");
900
Reporter.Output.
WriteLine
(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResource, source));
TemplatePackageDisplay.cs (38)
54
_reporterOutput.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
73
_reporterOutput.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage);
122
_reporterOutput.
WriteLine
(string.Format(LocalizableStrings.TemplatePackageCoordinator_Download_VulnerablePackage));
131
_reporterError.
WriteLine
(
138
_reporterError.
WriteLine
(
144
_reporterError.
WriteLine
(
150
_reporterError.
WriteLine
(
156
_reporterError.
WriteLine
(
165
_reporterError.
WriteLine
(
171
_reporterError.
WriteLine
(
182
_reporterError.
WriteLine
(string.Format(
186
_reporterError.
WriteLine
(string.Format(
194
_reporterError.
WriteLine
(string.Format(
198
_reporterError.
WriteLine
(string.Format(
213
_reporterError.
WriteLine
(
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));
285
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailablePackages);
299
Reporter.Output.
WriteLine
(formatter.Layout());
302
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
314
Reporter.Output.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAllCommandHeader);
340
_reporterError.
WriteLine
(
348
_reporterError.
WriteLine
(
355
_reporterError.
WriteLine
(
362
_reporterError.
WriteLine
(
371
_reporterError.
WriteLine
(
385
reporter.
WriteLine
($"{string.Empty.PadLeft(4)}{_vulnerabilitySeverityToColorMap[entry.Severity].Bold()}:");
386
reporter.
WriteLine
(
404
_reporterOutput.
WriteLine
(LocalizableStrings.TemplatePackageCoordinator_Install_ConstraintsNotice);
409
_reporterOutput.
WriteLine
(template.Template.GetDisplayName(showIdentity: showIdentity));
412
_reporterOutput.
WriteLine
(constraintResult.ToDisplayString().Indent(1));
TemplateSearch\CliHostSearchCacheData.cs (2)
44
Reporter.Verbose.
WriteLine
($"Error deserializing the cli host specific template data for template {data.Key}, details:{ex}");
51
Reporter.Verbose.
WriteLine
($"Error deserializing the cli host specific template data {cacheObject}, details:{ex}");
TemplateSearch\CliTemplateSearchCoordinator.cs (10)
46
Reporter.Output.
WriteLine
(LocalizableStrings.CliTemplateSearchCoordinator_Info_SearchInProgress);
60
Reporter.Error.
WriteLine
(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoSources.Bold().Red());
69
Reporter.Error.
WriteLine
(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).Red().Bold());
83
Reporter.Error.
WriteLine
(
94
Reporter.Output.
WriteLine
(LocalizableStrings.CliTemplateSearchCoordinator_Info_InstallHelp);
100
Reporter.Output.
WriteLine
(LocalizableStrings.Generic_ExampleHeader);
203
Reporter.Output.
WriteLine
(formatter.Layout());
256
Reporter.Error.
WriteLine
(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoTemplateName.Red().Bold());
258
Reporter.Error.
WriteLine
(LocalizableStrings.Generic_ExamplesHeader);
283
Reporter.Error.
WriteLine
(LocalizableStrings.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().Red());