5 implementations of WriteLine
dotnet (2)
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (1)
112public void WriteLine(string message) => _setupLogger.LogMessage(message);
Commands\Workload\Install\NullReporter.cs (1)
11public void WriteLine(string message) { }
Microsoft.DotNet.Cli.Utils (1)
Reporter.cs (1)
109public void WriteLine(string message)
Microsoft.NET.TestFramework (1)
Utilities\BufferedReporter.cs (1)
14public void WriteLine(string message)
Microsoft.TemplateEngine.Cli.UnitTests (1)
TemplatePackageDisplayTest.cs (1)
203public void WriteLine(string message) => ReportedStrings.AppendLine(message);
625 references to WriteLine
dotnet (375)
BuildServer\BuildServerProvider.cs (1)
91_reporter.WriteLine(
BuildServer\VBCSCompilerServer.cs (3)
39Reporter.Verbose.WriteLine($"Shutting down '{s_toolsetPackageName}' compilers."); 42Reporter.Verbose.WriteLine($"Enumerating '{toolsetPackageDirectory}'."); 48Reporter.Verbose.WriteLine($"Found '{vbcsCompilerPath}'.");
CliCompletion.cs (1)
30Reporter.Verbose.WriteLine($"Exception occurred while getting completions: {e}");
CommandFactory\CommandResolution\OutputPathCommandResolver.cs (1)
62Reporter.Verbose.WriteLine(
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (3)
32Reporter.Verbose.WriteLine(string.Format( 43Reporter.Verbose.WriteLine(string.Format( 55Reporter.Verbose.WriteLine(string.Format(
CommandFactory\CommandResolution\PackagedCommandSpecFactoryWithCliRuntime.cs (2)
38Reporter.Verbose.WriteLine( 71Reporter.Verbose.WriteLine(
CommandFactory\CommandResolution\ProjectDependenciesCommandResolver.cs (6)
40Reporter.Verbose.WriteLine(string.Format( 50Reporter.Verbose.WriteLine(string.Format( 88Reporter.Verbose.WriteLine(string.Format( 99Reporter.Verbose.WriteLine(string.Format( 110Reporter.Verbose.WriteLine(string.Format( 150Reporter.Verbose.WriteLine(string.Format(
CommandFactory\CommandResolution\ProjectFactory.cs (3)
37Reporter.Verbose.WriteLine(string.Format( 44Reporter.Verbose.WriteLine(string.Format( 60Reporter.Verbose.WriteLine(ex.ToString().Red());
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (16)
31Reporter.Verbose.WriteLine(string.Format( 54Reporter.Verbose.WriteLine(string.Format( 75Reporter.Verbose.WriteLine(string.Format( 94Reporter.Verbose.WriteLine(string.Format( 107Reporter.Verbose.WriteLine(string.Format( 113Reporter.Verbose.WriteLine(string.Format( 151Reporter.Verbose.WriteLine(string.Format( 162Reporter.Verbose.WriteLine(string.Format( 178Reporter.Verbose.WriteLine(string.Format( 193Reporter.Verbose.WriteLine(string.Format( 290Reporter.Verbose.WriteLine(string.Format( 326Reporter.Verbose.WriteLine(string.Format( 381Reporter.Verbose.WriteLine(string.Format(CliStrings.MSBuildArgs, 422Reporter.Verbose.WriteLine(string.Format( 435Reporter.Verbose.WriteLine(string.Format( 445Reporter.Verbose.WriteLine(string.Format(
CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (3)
41Reporter.Verbose.WriteLine(string.Format( 51Reporter.Verbose.WriteLine(string.Format( 69Reporter.Verbose.WriteLine(string.Format(
CommandLineInfo.cs (13)
17Reporter.Output.WriteLine(Product.Version); 24Reporter.Output.WriteLine($"{LocalizableStrings.DotNetSdkInfoLabel}"); 25Reporter.Output.WriteLine($" Version: {Product.Version}"); 26Reporter.Output.WriteLine($" Commit: {commitSha}"); 27Reporter.Output.WriteLine($" Workload version: {WorkloadCommandParser.GetWorkloadsVersion()}"); 28Reporter.Output.WriteLine($" MSBuild version: {MSBuildForwardingAppWithoutLogging.MSBuildVersion.ToString()}"); 30Reporter.Output.WriteLine($"{LocalizableStrings.DotNetRuntimeInfoLabel}"); 31Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}"); 32Reporter.Output.WriteLine($" OS Version: {RuntimeEnvironment.OperatingSystemVersion}"); 33Reporter.Output.WriteLine($" OS Platform: {RuntimeEnvironment.OperatingSystemPlatform}"); 34Reporter.Output.WriteLine($" RID: {GetDisplayRid(versionFile)}"); 35Reporter.Output.WriteLine($" Base Path: {AppContext.BaseDirectory}"); 42Reporter.Output.WriteLine($"{LocalizableStrings.DotnetWorkloadInfoLabel}");
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (8)
61_reporter.WriteLine(CliCommandStrings.NoServersToShutdown.Green()); 112_reporter.WriteLine( 120_reporter.WriteLine( 131_reporter.WriteLine( 140_reporter.WriteLine( 149Reporter.Verbose.WriteLine(exception.ToString().Red()); 157_reporter.WriteLine( 165_reporter.WriteLine(
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (6)
28Reporter.Verbose.WriteLine($"Would remove folder: {folder.FullName}"); 36Reporter.Verbose.WriteLine($"Removed folder: {folder.FullName}"); 41Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsErrorRemovingFolder, folder, ex.Message).Red()); 67Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsDirectoryNotFound, directory.FullName).Yellow()); 122Reporter.Verbose.WriteLine("Starting automatic cleanup of file-based app artifacts."); 174Reporter.Verbose.WriteLine($"Cannot access artifacts metadata file '{metadataFile?.FullName}': {ex}");
Commands\Help\HelpCommand.cs (4)
36Reporter.Output.WriteLine(CliUsage.HelpText); 42Reporter.Output.WriteLine(Product.LongName + versionString); 97Reporter.Error.WriteLine( 101Reporter.Output.WriteLine(CliUsage.HelpText);
Commands\Hidden\Complete\CompleteCommand.cs (1)
41reporter.WriteLine(completion.Label);
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (18)
48Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_ActionMisconfigured); 58Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_UnresolvedProjFile); 59Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_ProjFileListHeader); 62Reporter.Error.WriteLine(string.Format("\t{0}", projectFile)); 76Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_UnresolvedProjFile); 118Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_ActionMisconfigured); 124Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_ActionMisconfigured); 144Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_Error_FrameworkNotSupported, referenceToAdd)); 149Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_Error_UnsupportedRefType, referenceType)); 160Reporter.Output.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_AddPackageReference, packageName, projectPath)); 164Reporter.Output.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_AddPackageReference_WithVersion, packageName, version, projectPath)); 169Reporter.Output.WriteLine(CliCommandStrings.PostAction_AddReference_Succeeded); 173Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Failed); 179Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_AddPackageReference_Failed, e.Message)); 188Reporter.Output.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_AddProjectReference, projectToAdd, projectPath)); 192Reporter.Output.WriteLine(CliCommandStrings.PostAction_AddReference_Succeeded); 196Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Failed); 202Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_AddProjectReference_Failed, e.Message));
Commands\New\PostActions\DotnetRestorePostActionProcessor.cs (6)
28Reporter.Output.WriteLine(CliCommandStrings.PostAction_Restore_Error_NoProjectsToRestore); 36Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_Restore_Error_FailedToDetermineProjectToRestore)); 51Reporter.Output.WriteLine(string.Format(CliCommandStrings.PostAction_Restore_Running, pathToRestore)); 55Reporter.Error.WriteLine(CliCommandStrings.PostAction_Restore_Failed); 59Reporter.Output.WriteLine(CliCommandStrings.PostAction_Restore_Succeeded); 65Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_Restore_RestoreFailed, e.Message));
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (9)
73Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddProjToSln_Error_NoSolutionFile); 83Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddProjToSln_Error_NoProjectsToAdd); 89Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddProjToSln_Error_NoProjectsToAdd); 98Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddProjToSln_Error_BothInRootAndSolutionFolderSpecified); 104Reporter.Output.WriteLine(string.Format(CliCommandStrings.PostAction_AddProjToSln_InRoot_Running, string.Join(" ", projectFiles), nearestSlnFilesFound[0])); 108Reporter.Output.WriteLine(string.Format(CliCommandStrings.PostAction_AddProjToSln_Running, string.Join(" ", projectFiles), nearestSlnFilesFound[0], solutionFolder)); 120Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddProjToSln_Failed_NoReason); 124Reporter.Output.WriteLine(CliCommandStrings.PostAction_AddProjToSln_Succeeded); 131Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddProjToSln_Failed, e.Message));
Commands\Package\Add\PackageAddCommand.cs (2)
222Reporter.Verbose.WriteLine($"Assets file does not exist: {projectAssetsFile}"); 285Reporter.Verbose.WriteLine($"Directory.Packages.props file does not exist: {directoryPackagesPropsPath}");
Commands\Reference\Add\ReferenceAddCommand.cs (1)
58Reporter.Error.WriteLine(string.Format(
Commands\Reference\List\ReferenceListCommand.cs (4)
37Reporter.Output.WriteLine(string.Format(CliStrings.NoReferencesFound, CliStrings.P2P, _fileOrDirectory)); 42Reporter.Output.WriteLine($"{CliStrings.ProjectReferenceOneOrMore}"); 43Reporter.Output.WriteLine(new string('-', CliStrings.ProjectReferenceOneOrMore.Length)); 46Reporter.Output.WriteLine(item.EvaluatedInclude);
Commands\Run\CSharpCompilerCommand.cs (6)
114Reporter.Verbose.WriteLine($"Copying '{objFile}' to '{BuildResultFile}'."); 135Reporter.Verbose.WriteLine("Compiler server processed compilation."); 141Reporter.Error.WriteLine("Error: Compiler server reports a different hash version than the SDK.".Red()); 146Reporter.Output.WriteLine("Warning: Could not launch the compiler server.".Yellow()); 151Reporter.Error.WriteLine($"Warning: Compiler server returned unexpected response: {response.GetType().Name}".Yellow()); 341Reporter.Verbose.WriteLine($"Generating CSC auxiliary file because it does not exist: {file}");
Commands\Run\RunCommand.cs (12)
132Reporter.Output.WriteLine(CliCommandStrings.RunCommandBuilding); 226Reporter.Output.WriteLine(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)); 236Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName, applyResult.FailureReason).Bold().Red()); 245Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName).Bold().Red()); 246Reporter.Error.WriteLine(ex.Message.Bold().Red()); 281Reporter.Output.WriteLine(string.Format(CliCommandStrings.RunCommandWarningRunJsonNotUsed, runJsonPath, launchSettingsPath).Yellow()); 294Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotLocateALaunchSettingsFile, launchProfile, $""" 390Reporter.Verbose.WriteLine("Getting target command: from cache."); 399Reporter.Verbose.WriteLine("Getting target command: for csc-built program."); 403Reporter.Verbose.WriteLine("Getting target command: evaluating project."); 611Reporter.Output.WriteLine(CliCommandStrings.RunCommandProjectAbbreviationDeprecated.Yellow()); 785Reporter.Verbose.WriteLine($"Failed to send run telemetry: {ex}");
Commands\Run\VirtualProjectBuildingCommand.cs (36)
233Reporter.Output.WriteLine(CliCommandStrings.NoBinaryLogBecauseUpToDate.Yellow()); 247Reporter.Output.WriteLine(CliCommandStrings.NoBinaryLogBecauseRunningJustCsc.Yellow()); 381Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 451Reporter.Verbose.WriteLine($"Not saving CSC arguments because there is an opt-out via MSBuild property {FileBasedProgramCanSkipMSBuild}."); 459Reporter.Verbose.WriteLine("Not saving CSC arguments because there is a project directive."); 474Reporter.Verbose.WriteLine($"Reusing previous CSC arguments ({cache.CurrentEntry.CscArguments.Length}) because none were found in the {Constants.CoreCompile} target."); 484Reporter.Verbose.WriteLine($"Found CSC arguments ({cache.CurrentEntry.CscArguments.Length}) and build result path: {cache.CurrentEntry.BuildResultFile}"); 489Reporter.Verbose.WriteLine($"No CSC arguments found in targets: {string.Join(", ", result.ResultsByTarget.Keys)}"); 671Reporter.Verbose.WriteLine("CSC auxiliary files can NOT be reused due to the same reason build is needed."); 677Reporter.Verbose.WriteLine("CSC auxiliary files can NOT be reused because previous build level was not CSC " + 682Reporter.Verbose.WriteLine("CSC auxiliary files can be reused."); 753Reporter.Verbose.WriteLine("Building because cache file does not exist: " + successCacheFile.FullName); 760Reporter.Verbose.WriteLine("Building because start cache file does not exist: " + startCacheFile.FullName); 768Reporter.Verbose.WriteLine("Building because start cache file is newer than success cache file (previous build likely failed): " + startCacheFile.FullName); 778Reporter.Verbose.WriteLine("Building because previous cache entry could not be deserialized: " + successCacheFile.FullName); 790Reporter.Verbose.WriteLine($""" 799Reporter.Verbose.WriteLine($""" 809Reporter.Verbose.WriteLine($""" 820Reporter.Verbose.WriteLine($""" 832Reporter.Verbose.WriteLine("Building because entry point file is missing: " + entryPointFile.FullName); 840Reporter.Verbose.WriteLine("Compiling because entry point file is modified: " + entryPointFile.FullName); 850Reporter.Verbose.WriteLine("Building because implicit build file is missing or modified: " + implicitBuildFileInfo.FullName); 860Reporter.Verbose.WriteLine("Building because new implicit build file is present: " + implicitBuildFilePath); 877Reporter.Verbose.WriteLine($"Failed to deserialize cache entry ({path}): {e.GetType().FullName}: {e.Message}"); 900Reporter.Verbose.WriteLine("No need to build, the output is up to date."); 909Reporter.Verbose.WriteLine("No CSC arguments from previous run."); 913Reporter.Verbose.WriteLine("We have CSC arguments but not run properties. That's unexpected."); 917Reporter.Verbose.WriteLine("We have CSC arguments but not build result file. That's unexpected."); 921Reporter.Verbose.WriteLine("Cannot use CSC arguments from previous run because directives changed."); 925Reporter.Verbose.WriteLine("We have CSC arguments from previous run. Skipping MSBuild and using CSC only."); 941Reporter.Verbose.WriteLine("Using MSBuild because there are directives in the source file."); 949Reporter.Verbose.WriteLine($"Using MSBuild because there are global properties, for example '{exampleKey}={exampleValue}'."); 956Reporter.Verbose.WriteLine($"Using MSBuild because there are implicit build files, for example '{exampleMSBuildFile}'."); 964Reporter.Verbose.WriteLine($"Using MSBuild because NuGet package file does not exist: {filePath}"); 969Reporter.Verbose.WriteLine("Skipping MSBuild and using CSC only."); 1008Reporter.Verbose.WriteLine($"Cannot touch folder '{directory}': {ex}");
Commands\Sdk\Check\RuntimeOutputWriter.cs (2)
20_reporter.WriteLine(CliCommandStrings.RuntimeSectionHeader); 27table.PrintRows(_runtimeInfo.OrderBy(sdk => sdk.Version), l => _reporter.WriteLine(l));
Commands\Sdk\Check\SdkCheckCommand.cs (2)
43_reporter.WriteLine(_sdkCheckConfig.CommandOutputReplacementString); 61_reporter.WriteLine(CliCommandStrings.CommandFooter);
Commands\Sdk\Check\SdkOutputWriter.cs (3)
20_reporter.WriteLine(CliCommandStrings.SdkSectionHeader); 26table.PrintRows(_sdkInfo.OrderBy(sdk => sdk.Version), l => _reporter.WriteLine(l)); 32_reporter.WriteLine(string.Format(CliCommandStrings.NewFeatureBandMessage, NewestFeatureBandAvailable()));
Commands\Solution\Add\SolutionAddCommand.cs (1)
156Reporter.Error.WriteLine(string.Format(CliStrings.InvalidProjectWithExceptionMessage, fullProjectPath, ex.Message));
Commands\Solution\List\SolutionListCommand.cs (4)
48Reporter.Output.WriteLine(CliStrings.NoProjectsFound); 55Reporter.Output.WriteLine(header); 56Reporter.Output.WriteLine(new string('-', header.Length)); 59Reporter.Output.WriteLine(slnProject);
Commands\Test\MTP\MSBuildHandler.cs (3)
52Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdMSBuildProjectsPropertiesErrorDescription, msBuildExitCode)); 83Reporter.Error.WriteLine(message); 112Reporter.Error.WriteLine(
Commands\Test\MTP\SolutionAndProjectUtility.cs (3)
383Reporter.Output.WriteLine(string.Format(CliCommandStrings.RunCommandWarningRunJsonNotUsed, runJsonPath, launchSettingsPath).Yellow()); 398Reporter.Output.WriteLine(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)); 404Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName, result.FailureReason).Bold().Red());
Commands\Test\MTP\TestApplication.cs (1)
383Reporter.Error.WriteLine(messageBuilder.ToString());
Commands\Test\MTP\TestApplicationActionQueue.cs (1)
73Reporter.Error.WriteLine(string.Format(CliCommandStrings.ErrorRunningTestModule, module.RunProperties?.Command, module.RunProperties?.Arguments, exAsString));
Commands\Test\MTP\ValidationUtility.cs (3)
120Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdInvalidSolutionFileExtensionErrorDescription, path)); 138Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdInvalidProjectFileExtensionErrorDescription, path)); 149Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdNonExistentFileErrorDescription, Path.GetFullPath(filePath)));
Commands\Test\VSTest\TestCommand.cs (1)
133Reporter.Output.WriteLine(string.Format(CliCommandStrings.IgnoredArgumentsMessage, string.Join(" ", ignoredArgs)).Yellow());
Commands\Tool\Execute\ToolExecuteCommand.cs (3)
74Reporter.Error.WriteLine(restoreResult.Message.Red()); 103Reporter.Error.WriteLine(CliCommandStrings.ToolDownloadCanceled.Red().Bold()); 108Reporter.Error.WriteLine(CliCommandStrings.ToolDownloadNeedsConfirmation.Red().Bold());
Commands\Tool\Install\ProjectRestorer.cs (1)
96reporter.WriteLine(line);
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (5)
179_reporter.WriteLine(string.Format(CliCommandStrings.ToolAlreadyInstalled, oldPackageNullable.Id, oldPackageNullable.Version.ToNormalizedString()).Green()); 231_reporter.WriteLine(w.Yellow()); 353_reporter.WriteLine( 362_reporter.WriteLine( 371_reporter.WriteLine(
Commands\Tool\Install\ToolInstallLocalCommand.cs (4)
99_reporter.WriteLine(warningMessage.Yellow()); 138_reporter.WriteLine( 152_reporter.WriteLine( 184_reporter.WriteLine(
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (3)
93_errorReporter.WriteLine( 116table.PrintRows(packageEnumerable, l => _reporter.WriteLine(l)); 131_reporter.WriteLine(jsonText);
Commands\Tool\List\ToolListLocalCommand.cs (2)
87table.PrintRows(packageEnumerable, l => _reporter.WriteLine(l)); 103_reporter.WriteLine(jsonText);
Commands\Tool\Restore\ToolRestoreCommand.cs (8)
97_reporter.WriteLine(string.Join(Environment.NewLine, e.VerboseMessage).Yellow()); 100_reporter.WriteLine(e.Message.Yellow()); 101_reporter.WriteLine(CliCommandStrings.NoToolsWereRestored.Yellow()); 136_errorReporter.WriteLine(string.Join( 144_reporter.WriteLine(string.Join(Environment.NewLine, successMessage)); 148_errorReporter.WriteLine(Environment.NewLine + 157_reporter.WriteLine(string.Join(Environment.NewLine, 160_reporter.WriteLine(CliCommandStrings.LocalToolsRestoreWasSuccessful.Green());
Commands\Tool\Search\SearchResultPrinter.cs (13)
19_reporter.WriteLine(CliCommandStrings.NoResult); 42table.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(
Commands\Tool\Search\ToolSearchCommand.cs (1)
25Reporter.Output.WriteLine(CliCommandStrings.NeedNuGetInConfig);
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
80_reporter.WriteLine(
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
58_reporter.WriteLine(warningMessage.Yellow()); 61_reporter.WriteLine(
Commands\Workload\Clean\WorkloadCleanCommand.cs (4)
96Reporter.WriteLine(string.Format(CliCommandStrings.CannotAnalyzeVSWorkloadBand, sdkVersion, _dotnetPath, defaultDotnetWinPath).Yellow()); 116Reporter.WriteLine(string.Format(CliCommandStrings.CannotAnalyzeVSWorkloadBand, sdkVersion, _dotnetPath, defaultDotnetWinPath).Yellow()); 117Utils.Reporter.Verbose.WriteLine(ex.Message); 123Reporter.WriteLine(warning.Yellow());
Commands\Workload\Config\WorkloadConfigCommand.cs (4)
63Reporter.WriteLine(string.Format(CliCommandStrings.UpdateModeDoesNotMatchGlobalJson, WorkloadConfigCommandParser.UpdateMode_WorkloadSet, globalJsonPath, WorkloadConfigCommandParser.UpdateMode_Manifests).Yellow()); 74Reporter.WriteLine(string.Format(CliCommandStrings.UpdateModeDoesNotMatchGlobalJson, WorkloadConfigCommandParser.UpdateMode_Manifests, globalJsonPath, WorkloadConfigCommandParser.UpdateMode_WorkloadSet).Yellow()); 85Reporter.WriteLine(WorkloadConfigCommandParser.UpdateMode_WorkloadSet); 89Reporter.WriteLine(WorkloadConfigCommandParser.UpdateMode_Manifests);
Commands\Workload\History\WorkloadHistoryCommand.cs (3)
48Reporter.WriteLine(CliCommandStrings.NoHistoryFound); 61table.PrintRows(displayRecords, l => Reporter.WriteLine(l)); 66Reporter.WriteLine(CliCommandStrings.UnknownRecordsInformationalMessage);
Commands\Workload\Install\FileBasedInstaller.cs (12)
151_reporter.WriteLine(string.Format(CliCommandStrings.WorkloadPackAlreadyInstalledMessage, packInfo.ResolvedPackageId, packInfo.Version)); 174_reporter.WriteLine(string.Format(CliCommandStrings.UsingCacheForPackInstall, packInfo.ResolvedPackageId, packInfo.Version, offlineCache)); 186_reporter.WriteLine(string.Format(CliCommandStrings.InstallingPackVersionMessage, packInfo.ResolvedPackageId, packInfo.Version)); 229_reporter.WriteLine(string.Format(CliCommandStrings.RollingBackPackInstall, packInfo.ResolvedPackageId)); 239_reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallRollBackFailedMessage, e.Message)); 277_reporter.WriteLine(string.Format(CliCommandStrings.InstallingWorkloadManifest, manifestUpdate.ManifestId, manifestUpdate.NewVersion)); 411_reporter.WriteLine(string.Format(CliCommandStrings.GarbageCollectingSdkFeatureBandsMessage, string.Join(" ", installedSdkFeatureBands))); 456_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadSet, workloadSetVersion)); 491_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadManifest, manifestId, $"{manifestVersion}/{manifestFeatureBand}")); 584_reporter.WriteLine(string.Format(CliCommandStrings.UpdatedWorkloadMode, newModeString)); 705_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadPack, packInfo.Id, packInfo.Version)); 871_reporter.WriteLine(string.Format(CliCommandStrings.WritingPackInstallRecordMessage, packInfo.ResolvedPackageId, packInfo.Version));
Commands\Workload\Install\MsiInstallerBase.cs (1)
489Reporter.WriteLine(message);
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (5)
937Reporter.WriteLine($"Downloading {packageId} ({packageVersion})"); 1073Reporter.WriteLine(" Failed"); 1081Reporter.WriteLine(" Failed"); 1085Reporter.WriteLine($" Done"); 1178Reporter.WriteLine(string.Format(CliCommandStrings.UpdatedWorkloadMode, newModeString));
Commands\Workload\Install\WorkloadGarbageCollector.cs (8)
53_verboseReporter.WriteLine("GC: Beginning workload garbage collection."); 54_verboseReporter.WriteLine($"GC: Installed workloads: {string.Join(", ", _installedWorkloads)}"); 91_verboseReporter.WriteLine($"GC: Keeping workload set version {installState.WorkloadVersion} because it is specified in the install state file {installStateFilePath}"); 95_verboseReporter.WriteLine($"GC: Error: Workload set version {installState.WorkloadVersion} which was specified in {installStateFilePath} was not found. This is likely an invalid state."); 105_verboseReporter.WriteLine($"GC: Keeping latest installed workload set version {latestWorkloadSetVersion}"); 114_verboseReporter.WriteLine($"GC: Keeping workload set version {workloadSetVersion} because it is referenced by {globalJsonPath}."); 148_verboseReporter.WriteLine($"GC: Keeping manifest {manifest.Id} {manifest.Version}/{manifest.ManifestFeatureBand} as part of workload set {workloadSet}"); 174_verboseReporter.WriteLine($"GC: Keeping workload pack {pack.ResolvedPackageId} {pack.Version} as part of workload set {workloadSet}");
Commands\Workload\Install\WorkloadInstallCommand.cs (8)
80Reporter.WriteLine(CliCommandStrings.AspireWorkloadDeprecated.Yellow()); 132Reporter.WriteLine(JsonSerializer.Serialize(packageUrls, new JsonSerializerOptions() { WriteIndented = true })); 244Reporter.WriteLine(CliCommandStrings.CheckForUpdatedWorkloadManifests); 260Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadAlreadyInstalled, string.Join(" ", previouslyInstalledWorkloads)).Yellow()); 289Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallInstallationSucceeded, string.Join(" ", newWorkloadInstallRecords))); 304reporter.WriteLine(string.Format(CliCommandStrings.GarbageCollectionFailed, 334RollbackStarted = () => Reporter.WriteLine(CliCommandStrings.WorkloadInstallRollingBackInstall), 336RollbackFailed = ex => Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallRollBackFailedMessage, ex.Message))
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
250_reporter.WriteLine(string.Format(CliCommandStrings.RollbackDefinitionContainsExtraneousManifestIds, rollbackDefinitionFilePath, string.Join(" ", unrecognizedManifestIds)).Yellow());
Commands\Workload\InstallingWorkloadCommand.cs (6)
198Reporter.WriteLine(CliCommandStrings.UpdateFromRollbackSwitchesModeToLooseManifests); 238Reporter.WriteLine(CliCommandStrings.NoWorkloadUpdateFound); 275Reporter.WriteLine(CliCommandStrings.NoWorkloadUpdateFound); 353Reporter.WriteLine(string.Format(CliCommandStrings.NewWorkloadSet, workloadSetVersion)); 388reporter.WriteLine(CliCommandStrings.SkippingManifestUpdate); 419reporter.WriteLine(string.Format(CliCommandStrings.DownloadingPackToCacheMessage, packDownload.NuGetPackageId, packDownload.NuGetPackageVersion, downloadFolder));
Commands\Workload\List\VisualStudioWorkloads.cs (1)
189reporter.WriteLine(
Commands\Workload\List\WorkloadListCommand.cs (6)
74Reporter.WriteLine(JsonSerializer.Serialize(listOutput, new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase })); 89Reporter.WriteLine(string.Format( 98Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadListWorkloadSetVersion, _workloadListHelper.WorkloadResolver.GetWorkloadVersion().Version ?? "unknown")); 119table.PrintRows(installedWorkloads.AsEnumerable().OrderBy(workload => workload.Key), l => Reporter.WriteLine(l)); 123Reporter.WriteLine(CliCommandStrings.WorkloadListFooter); 129Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadListWorkloadUpdatesAvailable, string.Join(" ", updatableWorkloads)));
Commands\Workload\Repair\WorkloadRepairCommand.cs (3)
76Reporter.WriteLine(CliCommandStrings.NoWorkloadsToRepair); 80Reporter.WriteLine(string.Format(CliCommandStrings.RepairingWorkloads, string.Join(" ", workloadIds))); 87Reporter.WriteLine(string.Format(CliCommandStrings.RepairSucceeded, string.Join(" ", workloadIds)));
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
52Reporter.WriteLine(string.Format(CliCommandStrings.InstallingWorkloads, string.Join(" ", allWorkloadId)));
Commands\Workload\Search\WorkloadSearchCommand.cs (1)
53table.PrintRows(availableWorkloads, l => Reporter.WriteLine(l));
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (9)
93Utils.Reporter.Error.WriteLine(string.Format(CliCommandStrings.NoWorkloadVersionsFound, new SdkFeatureBand(_sdkVersion))); 99Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => new Dictionary<string, string>() 106Reporter.WriteLine(string.Join('\n', versions)); 119Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadVersionWithSpecifiedManifestNotFound, string.Join(' ', _workloadVersion))); 123Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => version.ToDictionary(_ => "workloadVersion", v => v)))); 127Reporter.WriteLine(string.Join('\n', versions)); 136Reporter.WriteLine(JsonSerializer.Serialize(new Dictionary<string, Dictionary<string, string>>() 147table.PrintRows(workloadSet.ManifestVersions, l => Reporter.WriteLine(l)); 185Utils.Reporter.Error.WriteLine(string.Format(CliCommandStrings.NoWorkloadVersionsFound, featureBand));
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (2)
72Reporter.WriteLine(string.Format(CliCommandStrings.RemovingWorkloadInstallationRecord, workloadId)); 80Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUninstallUninstallSucceeded, string.Join(" ", _workloadIds)));
Commands\Workload\Update\WorkloadUpdateCommand.cs (7)
96Reporter.WriteLine(JsonSerializer.Serialize(packageUrls, new JsonSerializerOptions() { WriteIndented = true })); 109Reporter.WriteLine(CliCommandStrings.WorkloadUpdateAdManifestsSucceeded); 114Reporter.WriteLine(workloadSet.ToJson()); 177Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUpdateUpdateSucceeded, string.Join(" ", workloadIds))); 229reporter.WriteLine(CliCommandStrings.NoWorkloadsToUpdate); 240Reporter.WriteLine(CliCommandStrings.WorkloadUpdateRollingBackInstall); 245Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUpdateRollBackFailedMessage, ex.Message));
Commands\Workload\WorkloadCommandParser.cs (14)
74reporter.WriteLine(indent + configurationMessage); 78reporter.WriteLine(indent + string.Format(CliCommandStrings.WorkloadSetFromGlobalJsonNotInstalled, versionInfo.Version, versionInfo.GlobalJsonPath)); 82reporter.WriteLine(indent + CliCommandStrings.ShouldInstallAWorkloadSet); 88reporter.WriteLine($" Workload version: {GetWorkloadsVersion()}"); 102reporter.WriteLine(CliCommandStrings.NoWorkloadsInstalledInfoWarning); 116reporter.WriteLine($" [{workload.Key}]"); 119reporter.WriteLine($" {workload.Value,align}"); 122reporter.WriteLine($" {workloadManifest.Version + '/' + workloadFeatureBand,align}"); 125reporter.WriteLine($" {workloadManifest.ManifestPath,align}"); 128reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.Version), dotnetPath).ToString(),align}" 130reporter.WriteLine(""); 182Reporter.Output.WriteLine(string.Empty); 193Reporter.Output.WriteLine(GetWorkloadsVersion()); 194Reporter.Output.WriteLine(string.Empty);
Commands\Workload\WorkloadIntegrityChecker.cs (2)
41reporter.WriteLine(CliCommandStrings.WorkloadIntegrityCheck); 43reporter.WriteLine("----------------");
Extensions\ParseResultExtensions.cs (1)
113Reporter.Error.WriteLine(CliStrings.RequiredCommandNotPassed.Red());
MsbuildProject.cs (4)
124Reporter.Output.WriteLine(string.Format( 133Reporter.Output.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, @ref)); 255Reporter.Output.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, r)); 261Reporter.Output.WriteLine(string.Format(
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}");
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
170_reporter.WriteLine(CliStrings.NuGetPackageSignatureVerificationSkipped);
Parser.cs (4)
269Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 275Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 282Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 289Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ?
Program.cs (6)
85Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose 101Reporter.Error.WriteLine(e.ToString().Red().Bold()); 282Reporter.Error.WriteLine(e.Message.Red()); 283Reporter.Output.WriteLine(e.InstructionMessage); 377Reporter.Verbose.WriteLine( 426reporter.WriteLine(CliStrings.WorkloadIntegrityCheckError.Yellow());
ReleasePropertyProjectLocator.cs (1)
258Reporter.Error.WriteLine(e.Message);
ShellShim\LinuxEnvironmentPath.cs (2)
68_reporter.WriteLine( 74_reporter.WriteLine(
ShellShim\OsxBashEnvironmentPath.cs (2)
56_reporter.WriteLine( 62_reporter.WriteLine(
ShellShim\OsxZshEnvironmentPathInstruction.cs (1)
38_reporter.WriteLine(
ShellShim\WindowsEnvironmentPath.cs (3)
66_reporter.WriteLine( 109_reporter.WriteLine(CliStrings.EnvironmentPathWindowsNeedReopen); 113_reporter.WriteLine(
Telemetry\PersistenceChannel\PersistenceChannelDebugLog.cs (1)
25Reporter.Output.WriteLine(message);
ToolPackage\ToolPackageDownloader.cs (3)
93Reporter.Output.WriteLine($"Extracting package {packageId}@{packageVersion} to {packagePath}"); 147Reporter.Output.WriteLine($"Locating package {packageId}@{version} in package store {packagesRootPath.Value}"); 148Reporter.Output.WriteLine($"The package has {string.Join(',', package.Nuspec.GetPackageTypes().Select(p => $"{p.Name},{p.Version}"))} package types");
ToolPackage\ToolPackageDownloaderBase.cs (7)
207Reporter.Output.WriteLine($"Configuring package {packageId}@{packageVersion} for runtime roll-forward"); 342Reporter.Output.WriteLine($"Resolving RID-specific package for {packageId} {packageVersion}"); 343Reporter.Output.WriteLine($"Target RID: {RuntimeInformation.RuntimeIdentifier}"); 344Reporter.Output.WriteLine($"Available RID-specific packages: {string.Join(", ", toolConfiguration.RidSpecificPackages.Keys)}"); 357Reporter.Output.WriteLine($"Best matching RID: {bestRuntimeIdentifier}"); 358Reporter.Output.WriteLine($"Resolved package: {resolvedPackage}"); 369Reporter.Output.WriteLine($"No RID-specific package declared for {packageId} {packageVersion}.");
TransactionalAction.cs (2)
89Reporter.Verbose.WriteLine(string.Format("TransactionAbortedException Message: {0}", ex.Message)); 90Reporter.Verbose.WriteLine(
dotnet.Tests (3)
ConfigurerTests\GivenADotnetFirstTimeUseConfigurer.cs (3)
51_reporterMock.Verify(r => r.WriteLine(It.Is<string>(str => str.Contains(LocalizableStrings.FirstTimeMessageMoreInformation))), Times.Never); 78_reporterMock.Verify(r => r.WriteLine(It.Is<string>(str => str.Contains(LocalizableStrings.FirstTimeMessageMoreInformation)))); 211_reporterMock.Verify(r => r.WriteLine(It.Is<string>(str => str.Contains(LocalizableStrings.FirstTimeMessageMoreInformation))));
Microsoft.DotNet.Cli.Utils (8)
Command.cs (7)
32Reporter.Verbose.WriteLine(string.Format( 48Reporter.Verbose.WriteLine($"> {Command.FormatProcessInfo(_process.StartInfo)}".White()); 57Reporter.Verbose.WriteLine(string.Format( 81Reporter.Verbose.WriteLine(message.Green()); 85Reporter.Verbose.WriteLine(message.Red().Bold()); 140_stdOut?.ForwardTo(writeLine: Reporter.Output.WriteLine); 160_stdErr?.ForwardTo(writeLine: Reporter.Error.WriteLine);
Extensions\ExceptionExtensions.cs (1)
17Reporter.Verbose.WriteLine($"Warning: Ignoring exception: {e.ToString().Yellow()}");
Microsoft.DotNet.Configurer (4)
DotnetFirstTimeUseConfigurer.cs (4)
67_reporter.WriteLine(string.Format(LocalizableStrings.FirstTimeMessageWelcome, ParseDotNetVersion(productVersion), productVersion)); 72_reporter.WriteLine(LocalizableStrings.TelemetryMessage); 93_reporter.WriteLine(LocalizableStrings.FirstTimeMessageAspNetCertificate); 101_reporter.WriteLine(LocalizableStrings.FirstTimeMessageMoreInformation);
Microsoft.DotNet.Tools.Tests.ComponentMocks (2)
EnvironmentPathInstructionMock.cs (1)
30_reporter.WriteLine(MockInstructionText);
ToolPackageDownloaderMock.cs (1)
260_reporter?.WriteLine($"Error: failed to restore package {packageId}.");
Microsoft.TemplateEngine.Cli (227)
Commands\AliasAssignmentCoordinator.cs (1)
161Reporter.Verbose.WriteLine(string.Format(LocalizableStrings.AliasAssignmentCoordinator_Error_ShortAlias, parameter.Name, shortName, qualifiedShortName));
Commands\BaseCommand.cs (10)
111Reporter.Output.WriteLine(string.Format( 116Reporter.Output.WriteLine(LocalizableStrings.Commands_Warning_DeprecatedCommand_Info.Yellow()); 169Reporter.Output.WriteLine("Attach to the process and press any key"); 199Reporter.Output.WriteLine(LocalizableStrings.CurrentConfiguration); 200Reporter.Output.WriteLine(" "); 210Reporter.Output.WriteLine(mountPointsFormatter.Layout()); 221Reporter.Output.WriteLine(generatorsFormatter.Layout()); 257Reporter.Error.WriteLine(ex.Message.Bold().Red()); 270Reporter.Error.WriteLine(ex.Message.Bold().Red()); 275Reporter.Error.WriteLine(ex.StackTrace.Bold().Red());
Commands\CliPathInfo.cs (1)
47Reporter.Verbose.WriteLine($"Global Settings Location: {definedSettingsLocation}");
Commands\create\InstantiateCommand.cs (16)
124reporter.WriteLine( 143reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red()); 157reporter.WriteLine(formatter.Layout().Bold().Red()); 158reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red()); 241reporter.WriteLine(HelpStrings.TableHeader_AmbiguousTemplatesList); 247reporter.WriteLine(HelpStrings.Hint_AmbiguousLanguage); 256reporter.WriteLine(HelpStrings.TableHeader_AmbiguousTemplatesList); 264reporter.WriteLine(HelpStrings.Hint_AmbiguousType); 325reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red()); 341reporter.WriteLine(formatter.Layout().Bold().Red()); 343reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red()); 349reporter.WriteLine(string.Format(LocalizableStrings.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().Red()); 470reporter.WriteLine(LocalizableStrings.InstantiateCommand_Info_TypoCorrection_Templates); 498reporter.WriteLine(LocalizableStrings.InstantiateCommand_Info_TypoCorrection_Subcommands); 524reporter.WriteLine(LocalizableStrings.Generic_CommandHints_List); 536reporter.WriteLine(LocalizableStrings.Generic_CommandHints_Search);
Commands\create\InstantiateCommand.NoMatchHandling.cs (5)
141reporter.WriteLine(InvalidOptionsListToString(invalidOptionsList, matchInfos).Bold().Red()); 146reporter.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().Red()); 153reporter.WriteLine(LocalizableStrings.InvalidParameterTemplateHint); 196Reporter.Error.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().Red()); 207Reporter.Error.WriteLine(string.Format(LocalizableStrings.TemplateOptions_Error_AllowedValuesForOptionList, token.Value, allowedValues));
Commands\create\TemplateCommand.cs (2)
236reporter.WriteLine(constraint.ToDisplayString().Indent()); 247reporter.WriteLine(LocalizableStrings.TemplateCommand_DisplayConstraintResults_Hint_TemplateNotUsable);
IReporterExtensions.cs (6)
22reporter.WriteLine(command.Indent(indentLevel + 1)); 32reporter.WriteLine(LocalizableStrings.CommandOutput); 49reporter.WriteLine("StdOut:"); 50reporter.WriteLine(string.IsNullOrWhiteSpace(output) ? LocalizableStrings.Generic_Empty : output); 58reporter.WriteLine("StdErr:"); 59reporter.WriteLine(string.IsNullOrWhiteSpace(output) ? LocalizableStrings.Generic_Empty : output);
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 (9)
89Reporter.Output.WriteLine(LocalizableStrings.ProcessingPostActions); 101Reporter.Output.WriteLine(LocalizableStrings.ActionWouldHaveBeenTakenAutomatically); 104Reporter.Output.WriteLine(action.Description.Indent()); 127Reporter.Error.WriteLine(LocalizableStrings.PostActionDispatcher_Error_RunScriptNotAllowed); 180Reporter.Output.WriteLine(LocalizableStrings.PostActionPromptHeader); 189Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red()); 227Reporter.Error.WriteLine(LocalizableStrings.PostActionFailedInstructionHeader); 233Reporter.Error.WriteLine(LocalizableStrings.PostActionFailedInstructionHeader); 256stream.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (11)
86Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, JsonFileNameArgument)); 96Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowFileCreationArgument)); 102Reporter.Error.WriteLine(LocalizableStrings.PostAction_ModifyJson_Error_NoJsonFile); 108Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, DetectRepoRootForFileCreation)); 119Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_MultipleJsonFiles, jsonFileName)); 146Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Succeeded, jsonFileName)); 162Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowPathCreationArgument)); 170Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ParentPropertyPathInvalid, propertyPath)); 232Reporter.Verbose.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Verbose_AttemptingToFindJsonFile, matchPattern, directory)); 278Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyNameArgument)); 284Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyValueArgument));
PostActionProcessors\ChmodPostActionProcessor.cs (1)
56Reporter.Verbose.WriteLine("Unable to start sub-process.");
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (1)
24Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\ProcessStartPostActionProcessor.cs (9)
21Reporter.Error.WriteLine(LocalizableStrings.PostAction_ProcessStartProcessor_Error_ConfigMissingExecutable); 66Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 67Reporter.Verbose.WriteLine("Unable to start sub-process."); 75Reporter.Error.WriteLine(LocalizableStrings.CommandFailed); 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);
TabularOutput\TemplateGroupDisplay.cs (1)
240reporter.WriteLine(formatter.Layout());
TemplateInvoker.cs (23)
67Reporter.Error.WriteLine(cx.Message.Bold().Red()); 70Reporter.Error.WriteLine(cx.InnerException.Message.Bold().Red()); 78Reporter.Error.WriteLine(ex.Message.Bold().Red()); 137Reporter.Error.WriteLine(string.Format(LocalizableStrings.InvalidNameParameter, printableChars, nonPrintableChars).Bold().Red()); 179Reporter.Error.WriteLine(cx.Message.Bold().Red()); 182Reporter.Error.WriteLine(cx.InnerException.Message.Bold().Red()); 189Reporter.Error.WriteLine(tae.Message.Bold().Red()); 204Reporter.Output.WriteLine(LocalizableStrings.FileActionsWouldHaveBeenTaken); 209Reporter.Output.WriteLine($" {GetChangeString(change.ChangeKind)}: {AdjustReportedPath(change.TargetRelativePath)}"); 222Reporter.Error.WriteLine(string.Format(LocalizableStrings.CreateFailed, resultTemplateName, instantiateResult.ErrorMessage).Bold().Red()); 233Reporter.Error.WriteLine(string.Format(LocalizableStrings.MissingRequiredParameter, fixedMessage, resultTemplateName).Bold().Red()); 237Reporter.Error.WriteLine(LocalizableStrings.TemplateCreator_Error_TemplateNotFound.Bold().Red()); 239Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_RebuildCache); 255Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_Uninstall); 258Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_Install); 266Reporter.Error.WriteLine($"{LocalizableStrings.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().Red()); 267Reporter.Error.WriteLine(LocalizableStrings.RunHelpForInformationAboutAcceptedParameters); 275Reporter.Error.WriteLine(LocalizableStrings.DestructiveChangesNotification.Bold().Red()); 284Reporter.Error.WriteLine(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().Red()); 288Reporter.Error.WriteLine( 297Reporter.Error.WriteLine(instantiateResult.ErrorMessage.Bold().Red()); 301Reporter.Error.WriteLine(LocalizableStrings.OperationCancelled.Bold().Red()); 304Reporter.Error.WriteLine(string.Format(LocalizableStrings.UnexpectedResult, Enum.GetName(typeof(CreationResultStatus), instantiateResult.Status), instantiateResult.ErrorMessage).Bold().Red());
TemplateListCoordinator.cs (10)
72Reporter.Output.WriteLine(LocalizableStrings.NoTemplatesFound); 75Reporter.Output.WriteLine(LocalizableStrings.Generic_CommandHints_Search); 87Reporter.Error.WriteLine( 96Reporter.Error.WriteLine( 108Reporter.Error.WriteLine( 118Reporter.Error.WriteLine(LocalizableStrings.Generic_CommandHints_Search); 163Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ExampleHeader); 171Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_DisplayOptionsHint); 178Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ListTemplatesHint); 185Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_SearchTemplatesHint);
TemplatePackageCoordinator.cs (64)
151Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 170Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage); 218Reporter.Output.WriteLine(string.Format(LocalizableStrings.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow()); 229Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Error_FoundNoPackagesToInstall); 245Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackagesToBeInstalled); 248Reporter.Output.WriteLine(installRequest.DisplayName.Indent()); 315Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_PackagesToBeUpdated); 318Reporter.Output.WriteLine($"{update.TemplatePackage!.Identifier}::{update.LatestVersion}".Indent()); 346Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_AllPackagesAreUpToDate); 481reporter.WriteLine($"{packageMetadata.Identity.Id}"); 490reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_SourceFeed}: {sourceFeed}".Indent(1)); 494reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Authors}:".Indent(1)); 499reporter.WriteLine(author.Trim().Indent(2)); 505reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Owners}:".Indent(1)); 510reporter.WriteLine(AnsiExtensions.Url($"https://nuget.org/profiles/{owner.Trim()}", owner).Indent(2)); 514reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_LicenseMetadata}:".Indent(1)); 520reporter.WriteLine( 528reporter.WriteLine( 536reporter.WriteLine( 543reporter.WriteLine($"{package.Identifier}"); 551reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Authors}:".Indent(1)); 556reporter.WriteLine(author.Trim().Indent(2)); 565reporter.WriteLine( 572reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Templates}:".Indent(1)); 585reporter.WriteLine(formatter.Layout(2)); 604reporter.WriteLine($"{metadataName}: {metadataEntry}".Indent(indent)); 632reporter.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_OverrideNotice); 633reporter.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackageIsAvailable); 636reporter.WriteLine($"{request.PackageInfo.Id}::{request.PackageInfo.Version}".Indent()); 718Reporter.Error.WriteLine( 733Reporter.Error.WriteLine( 739Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_UninstallCommandHeader); 760Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader); 769Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader); 825Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailablePackages); 839Reporter.Output.WriteLine(formatter.Layout()); 842Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 854Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAllCommandHeader); 882Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_InstalledItems); 886Reporter.Output.WriteLine(LocalizableStrings.NoItems); 892Reporter.Output.WriteLine($"{managedSource.Identifier}".Indent()); 895Reporter.Output.WriteLine($"{LocalizableStrings.Version} {managedSource.Version}".Indent(level: 2)); 901Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_DetailsHeader.Indent(level: 2)); 904Reporter.Output.WriteLine($"{detail.Key}: {GetFormattedValue(detail.Value)}".Indent(level: 3)); 911Reporter.Output.WriteLine($"{LocalizableStrings.Templates}:".Indent(level: 2)); 914Reporter.Output.WriteLine(info.GetDisplayName().Indent(level: 3)); 919Reporter.Output.WriteLine($"{LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_UninstallCommandHint}".Indent(level: 2)); 977Reporter.Error.WriteLine( 984Reporter.Error.WriteLine( 990Reporter.Error.WriteLine( 996Reporter.Error.WriteLine( 1002Reporter.Error.WriteLine( 1011Reporter.Error.WriteLine( 1017Reporter.Error.WriteLine( 1024Reporter.Error.WriteLine( 1043Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_ConstraintsNotice); 1048Reporter.Output.WriteLine(template.Template.GetDisplayName(showIdentity: showIdentity)); 1051Reporter.Output.WriteLine(constraintResult.ToDisplayString().Indent(1)); 1061Reporter.Error.WriteLine( 1069Reporter.Error.WriteLine( 1076Reporter.Error.WriteLine( 1083Reporter.Error.WriteLine( 1131Reporter.Verbose.WriteLine($"Custom source {source} is already loaded from default configuration."); 1137Reporter.Output.WriteLine(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResource, source));
TemplatePackageDisplay.cs (38)
53_reporterOutput.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 72_reporterOutput.WriteLine(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage); 121_reporterOutput.WriteLine(string.Format(LocalizableStrings.TemplatePackageCoordinator_Download_VulnerablePackage)); 130_reporterError.WriteLine( 137_reporterError.WriteLine( 143_reporterError.WriteLine( 149_reporterError.WriteLine( 155_reporterError.WriteLine( 164_reporterError.WriteLine( 170_reporterError.WriteLine( 181_reporterError.WriteLine(string.Format( 185_reporterError.WriteLine(string.Format( 193_reporterError.WriteLine(string.Format( 197_reporterError.WriteLine(string.Format( 212_reporterError.WriteLine( 228Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_InstalledItems); 232Reporter.Output.WriteLine(LocalizableStrings.NoItems); 238Reporter.Output.WriteLine($"{managedSource.Identifier}".Indent()); 241Reporter.Output.WriteLine($"{LocalizableStrings.Version} {managedSource.Version}".Indent(level: 2)); 247Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_DetailsHeader.Indent(level: 2)); 250Reporter.Output.WriteLine($"{detail.Key}: {GetFormattedValue(detail.Value)}".Indent(level: 3)); 257Reporter.Output.WriteLine($"{LocalizableStrings.Templates}:".Indent(level: 2)); 260Reporter.Output.WriteLine(info.GetDisplayName().Indent(level: 3)); 265Reporter.Output.WriteLine($"{LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_UninstallCommandHint}".Indent(level: 2)); 284Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailablePackages); 298Reporter.Output.WriteLine(formatter.Layout()); 301Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 313Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAllCommandHeader); 339_reporterError.WriteLine( 347_reporterError.WriteLine( 354_reporterError.WriteLine( 361_reporterError.WriteLine( 370_reporterError.WriteLine( 384reporter.WriteLine($"{string.Empty.PadLeft(4)}{_vulnerabilitySeverityToColorMap[entry.Severity].Bold()}:"); 385reporter.WriteLine( 403_reporterOutput.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_ConstraintsNotice); 408_reporterOutput.WriteLine(template.Template.GetDisplayName(showIdentity: showIdentity)); 411_reporterOutput.WriteLine(constraintResult.ToDisplayString().Indent(1));
TemplateSearch\CliHostSearchCacheData.cs (2)
38Reporter.Verbose.WriteLine($"Error deserializing the cli host specific template data for template {data.Name}, details:{ex}"); 45Reporter.Verbose.WriteLine($"Error deserializing the cli host specific template data {cacheObject}, details:{ex}");
TemplateSearch\CliTemplateSearchCoordinator.cs (10)
45Reporter.Output.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_SearchInProgress); 59Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoSources.Bold().Red()); 68Reporter.Error.WriteLine(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).Red().Bold()); 82Reporter.Error.WriteLine( 93Reporter.Output.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_InstallHelp); 99Reporter.Output.WriteLine(LocalizableStrings.Generic_ExampleHeader); 202Reporter.Output.WriteLine(formatter.Layout()); 255Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoTemplateName.Red().Bold()); 257Reporter.Error.WriteLine(LocalizableStrings.Generic_ExamplesHeader); 282Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().Red());
Microsoft.TemplateEngine.Cli.UnitTests (6)
PostActionTests\AddJsonPropertyPostActionTests.cs (6)
48mockReporter.Setup(r => r.WriteLine(It.IsAny<string>())) 63mockReporter.Verify(r => r.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ParentPropertyPathInvalid, parentPropertyPath)), Times.Once); 117mockReporter.Setup(r => r.WriteLine(It.IsAny<string>())) 535errorReporter.Verify(r => r.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, "jsonFileName")), Times.Once); 549errorReporter.Verify(r => r.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, "newJsonPropertyName")), Times.Once); 563errorReporter.Verify(r => r.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, "newJsonPropertyValue")), Times.Once);