2 implementations of WriteLine
dotnet (1)
Commands\Workload\Install\NullReporter.cs (1)
11public void WriteLine(string message) { }
Microsoft.DotNet.Cli.Utils (1)
Reporter.cs (1)
113public void WriteLine(string message)
617 references to WriteLine
dotnet (400)
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\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)
32Reporter.Verbose.WriteLine(string.Format( 55Reporter.Verbose.WriteLine(string.Format( 76Reporter.Verbose.WriteLine(string.Format( 95Reporter.Verbose.WriteLine(string.Format( 108Reporter.Verbose.WriteLine(string.Format( 114Reporter.Verbose.WriteLine(string.Format( 152Reporter.Verbose.WriteLine(string.Format( 163Reporter.Verbose.WriteLine(string.Format( 179Reporter.Verbose.WriteLine(string.Format( 194Reporter.Verbose.WriteLine(string.Format( 291Reporter.Verbose.WriteLine(string.Format( 327Reporter.Verbose.WriteLine(string.Format( 382Reporter.Verbose.WriteLine(string.Format(CliStrings.MSBuildArgs, 430Reporter.Verbose.WriteLine(string.Format( 443Reporter.Verbose.WriteLine(string.Format( 453Reporter.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)
21Reporter.Output.WriteLine(Product.Version); 31Reporter.Output.WriteLine($"{LocalizableStrings.DotNetSdkInfoLabel}"); 33Reporter.Output.WriteLine($" Version: {Product.Version}"); 34Reporter.Output.WriteLine($" Commit: {commitSha}"); 36Reporter.Output.WriteLine($" Workload version: {WorkloadInfoHelper.GetWorkloadsVersion()}"); 37Reporter.Output.WriteLine($" MSBuild version: {MSBuildForwardingAppWithoutLogging.MSBuildVersion}"); 45Reporter.Output.WriteLine($"{LocalizableStrings.DotNetRuntimeInfoLabel}"); 46Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}"); 47Reporter.Output.WriteLine($" OS Version: {RuntimeEnvironment.OperatingSystemVersion}"); 48Reporter.Output.WriteLine($" OS Platform: {RuntimeEnvironment.OperatingSystemPlatform}"); 50Reporter.Output.WriteLine($" RID: {RuntimeInformation.RuntimeIdentifier}"); 51Reporter.Output.WriteLine($" Base Path: {AppContext.BaseDirectory}"); 61Reporter.Output.WriteLine($"{LocalizableStrings.DotnetWorkloadInfoLabel}");
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (8)
57_reporter.WriteLine(CliCommandStrings.NoServersToShutdown.Green()); 108_reporter.WriteLine( 116_reporter.WriteLine( 127_reporter.WriteLine( 136_reporter.WriteLine( 145Reporter.Verbose.WriteLine(exception.ToString().Red()); 153_reporter.WriteLine( 161_reporter.WriteLine(
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (6)
29Reporter.Verbose.WriteLine($"Would remove folder: {folder.FullName}"); 37Reporter.Verbose.WriteLine($"Removed folder: {folder.FullName}"); 42Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsErrorRemovingFolder, folder, ex.Message).Red()); 68Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsDirectoryNotFound, directory.FullName).Yellow()); 123Reporter.Verbose.WriteLine("Starting automatic cleanup of file-based app artifacts."); 175Reporter.Verbose.WriteLine($"Cannot access artifacts metadata file '{metadataFile?.FullName}': {ex}");
Commands\DotNetCommandFactory.cs (2)
84Reporter.Error.WriteLine( 91Reporter.Error.WriteLine(
Commands\Help\HelpCommand.cs (4)
36Reporter.Output.WriteLine(CliUsage.HelpText); 42Reporter.Output.WriteLine(LocalizableStrings.DotNetSdkInfo + 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\Reference\Add\ReferenceAddCommand.cs (1)
60Reporter.Error.WriteLine(string.Format(
Commands\Reference\List\ReferenceListCommand.cs (4)
32Reporter.Output.WriteLine(string.Format(CliStrings.NoReferencesFound, CliStrings.P2P, _fileOrDirectory)); 37Reporter.Output.WriteLine($"{CliStrings.ProjectReferenceOneOrMore}"); 38Reporter.Output.WriteLine(new string('-', CliStrings.ProjectReferenceOneOrMore.Length)); 41Reporter.Output.WriteLine(item.EvaluatedInclude);
Commands\Run\CSharpCompilerCommand.cs (8)
129Reporter.Verbose.WriteLine($"Skipping copy of '{objFile}' to '{BuildResultFile}' because the files have matching size and timestamp."); 133Reporter.Verbose.WriteLine($"Copying '{objFile}' to '{BuildResultFile}'."); 155Reporter.Verbose.WriteLine("Compiler server processed compilation."); 161Reporter.Verbose.WriteLine("CS0006 error detected in fast compilation path, falling back to full MSBuild."); 172Reporter.Error.WriteLine("Error: Compiler server reports a different hash version than the SDK.".Red()); 177Reporter.Output.WriteLine("Warning: Could not launch the compiler server.".Yellow()); 182Reporter.Error.WriteLine($"Warning: Compiler server returned unexpected response: {response.GetType().Name}".Yellow()); 296Reporter.Verbose.WriteLine($"Generating CSC auxiliary file because it does not exist: {file}");
Commands\Run\EnvironmentVariablesToMSBuild.cs (1)
92Reporter.Verbose.WriteLine($"Failed to delete temporary props file '{propsFilePath}': {ex.Message}");
Commands\Run\RunCommand.cs (11)
176Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, LaunchProfileParser.GetLaunchProfileDisplayName(LaunchProfile), launchProfileParseResult.FailureReason).Bold().Red()); 186Reporter.Output.WriteLine(CliCommandStrings.RunCommandBuilding); 453static (message, isError) => (isError ? Reporter.Error : Reporter.Output).WriteLine(message)); 462Reporter.Error.WriteLine(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)); 571Reporter.Verbose.WriteLine("Getting target command: from cache."); 579Reporter.Verbose.WriteLine("Getting target command: for csc-built program."); 584Reporter.Verbose.WriteLine("Getting target command: evaluating project."); 822Reporter.Output.WriteLine(CliCommandStrings.RunCommandProjectAbbreviationDeprecated.Yellow()); 883Reporter.Error.WriteLine( 890Reporter.Error.WriteLine( 1054Reporter.Verbose.WriteLine($"Failed to send run telemetry: {ex}");
Commands\Run\RunCommandSelector.cs (13)
269Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyFramework, "--framework")); 271Reporter.Error.WriteLine(CliCommandStrings.RunCommandAvailableTargetFrameworks); 276Reporter.Error.WriteLine($" {i + 1}. {frameworks[i]}"); 280Reporter.Error.WriteLine($"{CliCommandStrings.RunCommandExampleText}: dotnet run --framework {frameworks[0]}"); 429Reporter.Output.WriteLine(CliCommandStrings.RunCommandNoDevicesAvailable); 434Reporter.Error.WriteLine(CliCommandStrings.RunCommandNoDevicesAvailable); 441Reporter.Output.WriteLine(CliCommandStrings.RunCommandAvailableDevices); 468Reporter.Output.WriteLine(displayBuilder.ToString()); 472Reporter.Output.WriteLine($"{CliCommandStrings.RunCommandExampleText}: dotnet run --device {ArgumentEscaper.EscapeSingleArg(devices[0].Id)}"); 499Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyDevice, "--device")); 501Reporter.Error.WriteLine(CliCommandStrings.RunCommandAvailableDevices); 514Reporter.Error.WriteLine(displayText); 518Reporter.Error.WriteLine($"{CliCommandStrings.RunCommandExampleText}: dotnet run --device {ArgumentEscaper.EscapeSingleArg(devices[0].Id)}");
Commands\Run\VirtualProjectBuildingCommand.cs (39)
219Reporter.Output.WriteLine(CliCommandStrings.NoBinaryLogBecauseUpToDate.Yellow()); 256Reporter.Output.WriteLine(CliCommandStrings.NoBinaryLogBecauseRunningJustCsc.Yellow()); 385Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 467Reporter.Verbose.WriteLine($"Reusing previous CSC arguments ({cache.CurrentEntry.CscArguments.Length}) because none were found in the {Constants.CoreCompile} target."); 477Reporter.Verbose.WriteLine($"Found CSC arguments ({cache.CurrentEntry.CscArguments.Length}) and build result path: {cache.CurrentEntry.BuildResultFile}"); 482Reporter.Verbose.WriteLine($"No CSC arguments found in targets: {string.Join(", ", result.ResultsByTarget.Keys)}"); 519Reporter.Verbose.WriteLine($"Wrote '{rspPath}'."); 526Reporter.Verbose.WriteLine($"Not saving cache because there is an opt-out via MSBuild property {FileBasedProgramCanSkipMSBuild}."); 532Reporter.Verbose.WriteLine("Not saving cache because there is a project directive."); 538Reporter.Verbose.WriteLine("Not saving cache because there is a ref directive."); 546Reporter.Verbose.WriteLine("Not saving cache because there is a glob include directive."); 747Reporter.Verbose.WriteLine("CSC auxiliary files can NOT be reused due to the same reason build is needed."); 753Reporter.Verbose.WriteLine("CSC auxiliary files can NOT be reused because previous build level was not CSC " + 758Reporter.Verbose.WriteLine("CSC auxiliary files can be reused."); 774Reporter.Verbose.WriteLine("Skipping computing cache because there are project or ref directives."); 841Reporter.Verbose.WriteLine("Building because cache file does not exist: " + successCacheFile.FullName); 848Reporter.Verbose.WriteLine("Building because start cache file does not exist: " + startCacheFile.FullName); 856Reporter.Verbose.WriteLine("Building because start cache file is newer than success cache file (previous build likely failed): " + startCacheFile.FullName); 866Reporter.Verbose.WriteLine("Building because previous cache entry could not be deserialized: " + successCacheFile.FullName); 878Reporter.Verbose.WriteLine($""" 887Reporter.Verbose.WriteLine($""" 897Reporter.Verbose.WriteLine($""" 908Reporter.Verbose.WriteLine($""" 920Reporter.Verbose.WriteLine("Building because entry point file is missing: " + entryPointFile.FullName); 931Reporter.Verbose.WriteLine("Compiling because entry point file is modified: " + targetFile.FullName); 932Reporter.Verbose.WriteLine(reasonToNotReuseCscArguments); 942Reporter.Verbose.WriteLine("Building because implicit build file is missing or modified: " + implicitBuildFileInfo.FullName); 952Reporter.Verbose.WriteLine("Building because new implicit build file is present: " + implicitBuildFilePath); 966Reporter.Verbose.WriteLine("Building because additional source file is missing or modified: " + additionalSourceFileInfo.FullName); 976Reporter.Verbose.WriteLine("Compiling because entry point file is modified: " + targetFile.FullName); 1026Reporter.Verbose.WriteLine($"Failed to deserialize cache entry ({path}): {e.GetType().FullName}: {e.Message}"); 1049Reporter.Verbose.WriteLine("No need to build, the output is up to date. Cache: " + Builder.ArtifactsPath); 1060Reporter.Verbose.WriteLine("We have CSC arguments from previous run. Skipping MSBuild and using CSC only."); 1076Reporter.Verbose.WriteLine("Using MSBuild because there are directives in the source file."); 1084Reporter.Verbose.WriteLine($"Using MSBuild because there are global properties, for example '{exampleKey}={exampleValue}'."); 1091Reporter.Verbose.WriteLine($"Using MSBuild because there are implicit build files, for example '{exampleMSBuildFile}'."); 1099Reporter.Verbose.WriteLine($"Using MSBuild because NuGet package file does not exist: {filePath}"); 1104Reporter.Verbose.WriteLine("Skipping MSBuild and using CSC only."); 1143Reporter.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)
46_reporter.WriteLine(_sdkCheckConfig.CommandOutputReplacementString); 64_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)
173Reporter.Error.WriteLine(string.Format(CliStrings.InvalidProjectWithExceptionMessage, fullProjectPath, ex.Message));
Commands\Solution\List\SolutionListCommand.cs (4)
54Reporter.Output.WriteLine(CliStrings.NoProjectsFound); 61Reporter.Output.WriteLine(header); 62Reporter.Output.WriteLine(new string('-', header.Length)); 65Reporter.Output.WriteLine(slnProject);
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (3)
240Utils.Reporter.Output.WriteLine(title); 250Utils.Reporter.Output.WriteLine((groupedModules.Key ? CliCommandStrings.HelpUnavailableOptions : CliCommandStrings.HelpUnavailableExtensionOptions).Yellow()); 273Utils.Reporter.Output.WriteLine($"{missing}\n{line}\n");
Commands\Test\MTP\MSBuildHandler.cs (3)
33Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdMSBuildProjectsPropertiesErrorDescription, buildExitCode)); 47Reporter.Error.WriteLine( 62Reporter.Error.WriteLine(CliCommandStrings.CmdTestNoTestProjectsFound);
Commands\Test\MTP\SolutionAndProjectUtility.cs (3)
391Reporter.Output.WriteLine(string.Format(CliCommandStrings.RunCommandWarningRunJsonNotUsed, runJsonPath, launchSettingsPath).Yellow()); 406Reporter.Error.WriteLine(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)); 412Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName, result.FailureReason).Bold().Red());
Commands\Test\MTP\TestApplication.cs (1)
432Reporter.Error.WriteLine(messageBuilder.ToString());
Commands\Test\MTP\TestApplicationActionQueue.cs (1)
70Reporter.Error.WriteLine(string.Format(CliCommandStrings.ErrorRunningTestModule, module.RunProperties?.Command, module.RunProperties?.Arguments, exAsString));
Commands\Test\MTP\TestModulesFilterHandler.cs (2)
43Reporter.Output.WriteLine(string.Format(CliCommandStrings.CmdNonExistentRootDirectoryErrorDescription, _testModulesRoot).Yellow()); 50Reporter.Output.WriteLine(string.Format(CliCommandStrings.CmdNoTestModulesErrorDescription, _testModules, _testModulesRoot).Yellow());
Commands\Test\MTP\ValidationUtility.cs (4)
91Reporter.Error.WriteLine(message); 113Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdInvalidSolutionFileExtensionErrorDescription, solutionFileOrDirectory)); 136Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdInvalidProjectFileExtensionErrorDescription, projectOrSolutionFileOrDirectory)); 147Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdNonExistentFileErrorDescription, Path.GetFullPath(filePath)));
Commands\Test\VSTest\TestCommand.cs (1)
158Reporter.Output.WriteLine(string.Format(CliCommandStrings.IgnoredArgumentsMessage, string.Join(" ", ignoredArgs)).Yellow());
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
87Reporter.Error.WriteLine(restoreResult.Message.Red());
Commands\Tool\Install\ProjectRestorer.cs (1)
96reporter.WriteLine(line);
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (4)
206_reporter.WriteLine(string.Format(CliCommandStrings.ToolAlreadyInstalled, oldPackage.Id, oldPackage.Version.ToNormalizedString()).Green()); 257_reporter.WriteLine(w.Yellow()); 388_reporter.WriteLine( 397_reporter.WriteLine(
Commands\Tool\Install\ToolInstallLocalCommand.cs (4)
113_reporter.WriteLine(warningMessage.Yellow()); 152_reporter.WriteLine( 166_reporter.WriteLine( 198_reporter.WriteLine(
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (3)
89reporter.WriteLine( 112table.PrintRows(packageEnumerable, l => _reporter.WriteLine(l)); 127_reporter.WriteLine(jsonText);
Commands\Tool\List\ToolListLocalCommand.cs (2)
77table.PrintRows(packageEnumerable, l => _reporter.WriteLine(l)); 93_reporter.WriteLine(jsonText);
Commands\Tool\Restore\ToolRestoreCommand.cs (10)
95_reporter.WriteLine(string.Join(Environment.NewLine, e.VerboseMessage).Yellow()); 98_reporter.WriteLine(e.Message.Yellow()); 99_reporter.WriteLine(CliCommandStrings.NoToolsWereRestored.Yellow()); 134_errorReporter.WriteLine(string.Join( 142_reporter.WriteLine(string.Join(Environment.NewLine, successMessage)); 149_reporter.WriteLine(string.Join(Environment.NewLine, warnings).Yellow()); 153_errorReporter.WriteLine(Environment.NewLine + 162_reporter.WriteLine(string.Join(Environment.NewLine, 170_reporter.WriteLine(string.Join(Environment.NewLine, warnings).Yellow()); 174_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)
77_reporter.WriteLine(
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
57_reporter.WriteLine(warningMessage.Yellow()); 60_reporter.WriteLine(
Commands\Workload\Config\WorkloadConfigCommand.cs (4)
60Reporter.WriteLine(string.Format(CliCommandStrings.UpdateModeDoesNotMatchGlobalJson, WorkloadConfigCommandDefinition.UpdateMode_WorkloadSet, globalJsonPath, WorkloadConfigCommandDefinition.UpdateMode_Manifests).Yellow()); 71Reporter.WriteLine(string.Format(CliCommandStrings.UpdateModeDoesNotMatchGlobalJson, WorkloadConfigCommandDefinition.UpdateMode_Manifests, globalJsonPath, WorkloadConfigCommandDefinition.UpdateMode_WorkloadSet).Yellow()); 82Reporter.WriteLine(WorkloadConfigCommandDefinition.UpdateMode_WorkloadSet); 86Reporter.WriteLine(WorkloadConfigCommandDefinition.UpdateMode_Manifests);
Commands\Workload\History\WorkloadHistoryCommand.cs (3)
49Reporter.WriteLine(CliCommandStrings.NoHistoryFound); 62table.PrintRows(displayRecords, l => Reporter.WriteLine(l)); 67Reporter.WriteLine(CliCommandStrings.UnknownRecordsInformationalMessage);
Commands\Workload\Install\FileBasedInstaller.cs (12)
154_reporter.WriteLine(string.Format(CliCommandStrings.WorkloadPackAlreadyInstalledMessage, packInfo.ResolvedPackageId, packInfo.Version)); 177_reporter.WriteLine(string.Format(CliCommandStrings.UsingCacheForPackInstall, packInfo.ResolvedPackageId, packInfo.Version, offlineCache)); 189_reporter.WriteLine(string.Format(CliCommandStrings.InstallingPackVersionMessage, packInfo.ResolvedPackageId, packInfo.Version)); 232_reporter.WriteLine(string.Format(CliCommandStrings.RollingBackPackInstall, packInfo.ResolvedPackageId)); 242_reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallRollBackFailedMessage, e.Message)); 280_reporter.WriteLine(string.Format(CliCommandStrings.InstallingWorkloadManifest, manifestUpdate.ManifestId, manifestUpdate.NewVersion)); 414_reporter.WriteLine(string.Format(CliCommandStrings.GarbageCollectingSdkFeatureBandsMessage, string.Join(" ", installedSdkFeatureBands))); 459_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadSet, workloadSetVersion)); 494_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadManifest, manifestId, $"{manifestVersion}/{manifestFeatureBand}")); 587_reporter.WriteLine(string.Format(CliCommandStrings.UpdatedWorkloadMode, newModeString)); 708_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadPack, packInfo.Id, packInfo.Version)); 874_reporter.WriteLine(string.Format(CliCommandStrings.WritingPackInstallRecordMessage, packInfo.ResolvedPackageId, packInfo.Version));
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)
97Reporter.WriteLine(CliCommandStrings.AspireWorkloadDeprecated.Yellow()); 145Reporter.WriteLine(JsonSerializer.Serialize(packageUrls, WorkloadInstallJsonSerializerContext.Default.IEnumerableString)); 259Reporter.WriteLine(CliCommandStrings.CheckForUpdatedWorkloadManifests); 275Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadAlreadyInstalled, string.Join(" ", previouslyInstalledWorkloads)).Yellow()); 304Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallInstallationSucceeded, string.Join(" ", newWorkloadInstallRecords))); 319reporter.WriteLine(string.Format(CliCommandStrings.GarbageCollectionFailed, 349RollbackStarted = () => Reporter.WriteLine(CliCommandStrings.WorkloadInstallRollingBackInstall), 351RollbackFailed = ex => Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallRollBackFailedMessage, ex.Message))
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
261_reporter.WriteLine(string.Format(CliCommandStrings.RollbackDefinitionContainsExtraneousManifestIds, rollbackDefinitionFilePath, string.Join(" ", unrecognizedManifestIds)).Yellow());
Commands\Workload\InstallingWorkloadCommand.cs (6)
191Reporter.WriteLine(CliCommandStrings.UpdateFromRollbackSwitchesModeToLooseManifests); 235Reporter.WriteLine(CliCommandStrings.NoWorkloadUpdateFound); 272Reporter.WriteLine(CliCommandStrings.NoWorkloadUpdateFound); 350Reporter.WriteLine(string.Format(CliCommandStrings.NewWorkloadSet, workloadSetVersion)); 385reporter.WriteLine(CliCommandStrings.SkippingManifestUpdate); 416reporter.WriteLine(string.Format(CliCommandStrings.DownloadingPackToCacheMessage, packDownload.NuGetPackageId, packDownload.NuGetPackageVersion, downloadFolder));
Commands\Workload\List\WorkloadListCommand.cs (6)
76Reporter.WriteLine(JsonSerializer.Serialize(listOutput, WorkloadListJsonSerializerContext.Default.ListOutput)); 91Reporter.WriteLine(string.Format( 100Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadListWorkloadSetVersion, _workloadListHelper.WorkloadResolver.GetWorkloadVersion().Version ?? "unknown")); 121table.PrintRows(installedWorkloads.AsEnumerable().OrderBy(workload => workload.Key), l => Reporter.WriteLine(l)); 125Reporter.WriteLine(CliCommandStrings.WorkloadListFooter); 131Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadListWorkloadUpdatesAvailable, string.Join(" ", updatableWorkloads)));
Commands\Workload\Repair\WorkloadRepairCommand.cs (3)
78Reporter.WriteLine(CliCommandStrings.NoWorkloadsToRepair); 82Reporter.WriteLine(string.Format(CliCommandStrings.RepairingWorkloads, string.Join(" ", workloadIds))); 89Reporter.WriteLine(string.Format(CliCommandStrings.RepairSucceeded, string.Join(" ", workloadIds)));
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
55Reporter.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)
95Utils.Reporter.Error.WriteLine(string.Format(CliCommandStrings.NoWorkloadVersionsFound, new SdkFeatureBand(_sdkVersion))); 101Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => new Dictionary<string, string>() 108Reporter.WriteLine(string.Join('\n', versions)); 121Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadVersionWithSpecifiedManifestNotFound, string.Join(' ', _workloadVersion))); 125Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => version.ToDictionary(_ => "workloadVersion", v => v)), WorkloadSearchVersionsJsonSerializerContext.Default.IEnumerableDictionaryStringString)); 129Reporter.WriteLine(string.Join('\n', versions)); 138Reporter.WriteLine(JsonSerializer.Serialize(new Dictionary<string, Dictionary<string, string>>() 149table.PrintRows(workloadSet.ManifestVersions, l => Reporter.WriteLine(l)); 187Utils.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)
99Reporter.WriteLine(JsonSerializer.Serialize(packageUrls, WorkloadInstallJsonSerializerContext.Default.IEnumerableString)); 112Reporter.WriteLine(CliCommandStrings.WorkloadUpdateAdManifestsSucceeded); 117Reporter.WriteLine(workloadSet.ToJson()); 180Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUpdateUpdateSucceeded, string.Join(" ", workloadIds))); 232reporter.WriteLine(CliCommandStrings.NoWorkloadsToUpdate); 243Reporter.WriteLine(CliCommandStrings.WorkloadUpdateRollingBackInstall); 248Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUpdateRollBackFailedMessage, ex.Message));
Commands\Workload\WorkloadCommandParser.cs (3)
61Reporter.Output.WriteLine(string.Empty); 72Reporter.Output.WriteLine(WorkloadInfoHelper.GetWorkloadsVersion()); 73Reporter.Output.WriteLine(string.Empty);
Commands\Workload\WorkloadInfoHelper.cs (11)
137reporter.WriteLine(indent + configurationMessage); 141reporter.WriteLine(indent + string.Format(CliCommandStrings.WorkloadSetFromGlobalJsonNotInstalled, versionInfo.Version, versionInfo.GlobalJsonPath)); 145reporter.WriteLine(indent + CliCommandStrings.ShouldInstallAWorkloadSet); 151reporter.WriteLine($" Workload version: {GetWorkloadsVersion()}"); 165reporter.WriteLine(CliCommandStrings.NoWorkloadsInstalledInfoWarning); 179reporter.WriteLine($" [{workload.Key}]"); 182reporter.WriteLine($" {workload.Value,align}"); 185reporter.WriteLine($" {workloadManifest.Version + '/' + workloadFeatureBand,align}"); 188reporter.WriteLine($" {workloadManifest.ManifestPath,align}"); 191reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.Version), dotnetPath).ToString(),align}" 193reporter.WriteLine("");
Commands\Workload\WorkloadIntegrityChecker.cs (2)
40reporter.WriteLine(CliCommandStrings.WorkloadIntegrityCheck); 42reporter.WriteLine("----------------");
Commands\Workload\WorkloadManifestCorruptionRepairer.cs (1)
84_reporter.WriteLine($"Repairing workload set {workloadSet.Version}...");
Extensions\ParseResultExtensions.cs (1)
106Reporter.Error.WriteLine(CliStrings.RequiredCommandNotPassed.Red());
MsbuildProject.cs (4)
101Reporter.Output.WriteLine(string.Format( 110Reporter.Output.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, @ref)); 232Reporter.Output.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, r)); 238Reporter.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)
260_reporter.WriteLine(CliStrings.NuGetPackageSignatureVerificationSkipped);
Parser.cs (4)
268Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 274Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 281Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 288Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ?
ParserOptionActions.cs (14)
57Reporter.Verbose.WriteLine(string.Format(LocalizableStrings.DotnetCliHomeUsed, home, CliFolderPathCalculator.DotnetHomeVariableName)); 119Reporter.Output.WriteLine(Product.Version); 140Reporter.Output.WriteLine($"{LocalizableStrings.DotNetSdkInfoLabel}"); 141Reporter.Output.WriteLine($" Version: {Product.Version}"); 142Reporter.Output.WriteLine($" Commit: {commitSha}"); 143Reporter.Output.WriteLine($" Workload version: {WorkloadInfoHelper.GetWorkloadsVersion()}"); 144Reporter.Output.WriteLine($" MSBuild version: {MSBuildForwardingAppWithoutLogging.MSBuildVersion}"); 146Reporter.Output.WriteLine($"{LocalizableStrings.DotNetRuntimeInfoLabel}"); 147Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}"); 148Reporter.Output.WriteLine($" OS Version: {RuntimeEnvironment.OperatingSystemVersion}"); 149Reporter.Output.WriteLine($" OS Platform: {RuntimeEnvironment.OperatingSystemPlatform}"); 150Reporter.Output.WriteLine($" RID: {GetDisplayRid(versionFile)}"); 151Reporter.Output.WriteLine($" Base Path: {AppContext.BaseDirectory}"); 153Reporter.Output.WriteLine($"{LocalizableStrings.DotnetWorkloadInfoLabel}");
Program.cs (6)
69Reporter.Verbose.WriteLine($"Telemetry is: {(TelemetryInstance.Enabled ? "Enabled" : "Disabled")}"); 123Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose 137Reporter.Error.WriteLine(e.ToString().Red().Bold()); 172Reporter.Error.WriteLine(e.Message.Red()); 173Reporter.Output.WriteLine(e.InstructionMessage); 268reporter.WriteLine(CliStrings.WorkloadIntegrityCheckError.Yellow());
ReleasePropertyProjectLocator.cs (1)
245Reporter.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(
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)
210Reporter.Output.WriteLine($"Configuring package {packageId}@{packageVersion} for runtime roll-forward"); 345Reporter.Output.WriteLine($"Resolving RID-specific package for {packageId} {packageVersion}"); 346Reporter.Output.WriteLine($"Target RID: {RuntimeInformation.RuntimeIdentifier}"); 347Reporter.Output.WriteLine($"Available RID-specific packages: {string.Join(", ", toolConfiguration.RidSpecificPackages.Keys)}"); 360Reporter.Output.WriteLine($"Best matching RID: {bestRuntimeIdentifier}"); 361Reporter.Output.WriteLine($"Resolved package: {resolvedPackage}"); 372Reporter.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(
Microsoft.DotNet.Cli.Utils (7)
Command.cs (7)
30Reporter.Verbose.WriteLine(string.Format( 46Reporter.Verbose.WriteLine($"> {Command.FormatProcessInfo(_process.StartInfo)}".White()); 55Reporter.Verbose.WriteLine(string.Format( 79Reporter.Verbose.WriteLine(message.Green()); 83Reporter.Verbose.WriteLine(message.Red().Bold()); 138_stdOut?.ForwardTo(writeLine: Reporter.Output.WriteLine); 158_stdErr?.ForwardTo(writeLine: Reporter.Error.WriteLine);
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)
161Reporter.Verbose.WriteLine(string.Format(LocalizableStrings.AliasAssignmentCoordinator_Error_ShortAlias, parameter.Name, shortName, qualifiedShortName));
Commands\BaseCommand.cs (10)
145Reporter.Output.WriteLine(string.Format( 150Reporter.Output.WriteLine(LocalizableStrings.Commands_Warning_DeprecatedCommand_Info.Yellow()); 177Reporter.Output.WriteLine("Attach to the process and press any key"); 207Reporter.Output.WriteLine(LocalizableStrings.CurrentConfiguration); 208Reporter.Output.WriteLine(" "); 218Reporter.Output.WriteLine(mountPointsFormatter.Layout()); 229Reporter.Output.WriteLine(generatorsFormatter.Layout()); 265Reporter.Error.WriteLine(ex.Message.Bold().Red()); 278Reporter.Error.WriteLine(ex.Message.Bold().Red()); 283Reporter.Error.WriteLine(ex.StackTrace.Bold().Red());
Commands\CliPathInfo.cs (1)
47Reporter.Verbose.WriteLine($"Global Settings Location: {definedSettingsLocation}");
Commands\create\InstantiateCommand.cs (16)
95reporter.WriteLine( 114reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red()); 128reporter.WriteLine(formatter.Layout().Bold().Red()); 129reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red()); 212reporter.WriteLine(HelpStrings.TableHeader_AmbiguousTemplatesList); 218reporter.WriteLine(HelpStrings.Hint_AmbiguousLanguage); 227reporter.WriteLine(HelpStrings.TableHeader_AmbiguousTemplatesList); 235reporter.WriteLine(HelpStrings.Hint_AmbiguousType); 296reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesHeader.Bold().Red()); 312reporter.WriteLine(formatter.Layout().Bold().Red()); 314reporter.WriteLine(LocalizableStrings.AmbiguousTemplatesMultiplePackagesHint.Bold().Red()); 320reporter.WriteLine(string.Format(LocalizableStrings.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().Red()); 441reporter.WriteLine(LocalizableStrings.InstantiateCommand_Info_TypoCorrection_Templates); 469reporter.WriteLine(LocalizableStrings.InstantiateCommand_Info_TypoCorrection_Subcommands); 495reporter.WriteLine(LocalizableStrings.Generic_CommandHints_List); 507reporter.WriteLine(LocalizableStrings.Generic_CommandHints_Search);
Commands\create\InstantiateCommand.NoMatchHandling.cs (5)
142reporter.WriteLine(InvalidOptionsListToString(invalidOptionsList, matchInfos).Bold().Red()); 147reporter.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().Red()); 154reporter.WriteLine(LocalizableStrings.InvalidParameterTemplateHint); 198Reporter.Error.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().Red()); 209Reporter.Error.WriteLine(string.Format(LocalizableStrings.TemplateOptions_Error_AllowedValuesForOptionList, token.Value, allowedValues));
Commands\create\TemplateCommand.cs (2)
251reporter.WriteLine(constraint.ToDisplayString().Indent()); 262reporter.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 (14)
88Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, JsonFileNameArgument)); 94Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, DetectRepoRoot)); 100Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllDirectoriesInSearch)); 108Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllParentDirectoriesInSearch)); 124Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowFileCreationArgument)); 130Reporter.Error.WriteLine(LocalizableStrings.PostAction_ModifyJson_Error_NoJsonFile); 141Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_MultipleJsonFiles, jsonFileName)); 168Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Succeeded, jsonFileName)); 180Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_NullJson, fileContent)); 186Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowPathCreationArgument)); 194Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ParentPropertyPathInvalid, propertyPath)); 259Reporter.Verbose.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Verbose_AttemptingToFindJsonFile, matchPattern, directory)); 312Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyNameArgument)); 318Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyValueArgument));
PostActionProcessors\ChmodPostActionProcessor.cs (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)
241reporter.WriteLine(formatter.Layout());
TemplateInvoker.cs (23)
69Reporter.Error.WriteLine(cx.Message.Bold().Red()); 72Reporter.Error.WriteLine(cx.InnerException.Message.Bold().Red()); 80Reporter.Error.WriteLine(ex.Message.Bold().Red()); 139Reporter.Error.WriteLine(string.Format(LocalizableStrings.InvalidNameParameter, printableChars, nonPrintableChars).Bold().Red()); 181Reporter.Error.WriteLine(cx.Message.Bold().Red()); 184Reporter.Error.WriteLine(cx.InnerException.Message.Bold().Red()); 191Reporter.Error.WriteLine(tae.Message.Bold().Red()); 206Reporter.Output.WriteLine(LocalizableStrings.FileActionsWouldHaveBeenTaken); 211Reporter.Output.WriteLine($" {GetChangeString(change.ChangeKind)}: {AdjustReportedPath(change.TargetRelativePath)}"); 224Reporter.Error.WriteLine(string.Format(LocalizableStrings.CreateFailed, resultTemplateName, instantiateResult.ErrorMessage).Bold().Red()); 235Reporter.Error.WriteLine(string.Format(LocalizableStrings.MissingRequiredParameter, fixedMessage, resultTemplateName).Bold().Red()); 239Reporter.Error.WriteLine(LocalizableStrings.TemplateCreator_Error_TemplateNotFound.Bold().Red()); 241Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_RebuildCache); 257Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_Uninstall); 260Reporter.Output.WriteLine(LocalizableStrings.TemplateCreator_Hint_Install); 268Reporter.Error.WriteLine($"{LocalizableStrings.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().Red()); 269Reporter.Error.WriteLine(LocalizableStrings.RunHelpForInformationAboutAcceptedParameters); 277Reporter.Error.WriteLine(LocalizableStrings.DestructiveChangesNotification.Bold().Red()); 286Reporter.Error.WriteLine(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().Red()); 290Reporter.Error.WriteLine( 299Reporter.Error.WriteLine(instantiateResult.ErrorMessage.Bold().Red()); 303Reporter.Error.WriteLine(LocalizableStrings.OperationCancelled.Bold().Red()); 306Reporter.Error.WriteLine(string.Format(LocalizableStrings.UnexpectedResult, Enum.GetName(typeof(CreationResultStatus), instantiateResult.Status), instantiateResult.ErrorMessage).Bold().Red());
TemplateListCoordinator.cs (10)
73Reporter.Output.WriteLine(LocalizableStrings.NoTemplatesFound); 76Reporter.Output.WriteLine(LocalizableStrings.Generic_CommandHints_Search); 88Reporter.Error.WriteLine( 97Reporter.Error.WriteLine( 109Reporter.Error.WriteLine( 119Reporter.Error.WriteLine(LocalizableStrings.Generic_CommandHints_Search); 164Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ExampleHeader); 172Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_DisplayOptionsHint); 179Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_ListTemplatesHint); 186Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_SearchTemplatesHint);
TemplatePackageCoordinator.cs (40)
148Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 167Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage); 215Reporter.Output.WriteLine(string.Format(LocalizableStrings.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow()); 226Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Error_FoundNoPackagesToInstall); 242Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackagesToBeInstalled); 245Reporter.Output.WriteLine(installRequest.DisplayName.Indent()); 312Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_PackagesToBeUpdated); 315Reporter.Output.WriteLine($"{update.TemplatePackage!.Identifier}@{update.LatestVersion}".Indent()); 343Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_AllPackagesAreUpToDate); 478reporter.WriteLine($"{packageMetadata.Identity.Id}"); 487reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_SourceFeed}: {sourceFeed}".Indent(1)); 491reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Authors}:".Indent(1)); 496reporter.WriteLine(author.Trim().Indent(2)); 502reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Owners}:".Indent(1)); 507reporter.WriteLine(AnsiExtensions.Url($"https://nuget.org/profiles/{owner.Trim()}", owner).Indent(2)); 511reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_LicenseMetadata}:".Indent(1)); 517reporter.WriteLine( 525reporter.WriteLine( 533reporter.WriteLine( 540reporter.WriteLine($"{package.Identifier}"); 548reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Authors}:".Indent(1)); 553reporter.WriteLine(author.Trim().Indent(2)); 562reporter.WriteLine( 569reporter.WriteLine($"{LocalizableStrings.DetailsCommand_Property_Templates}:".Indent(1)); 582reporter.WriteLine(formatter.Layout(2)); 601reporter.WriteLine($"{metadataName}: {metadataEntry}".Indent(indent)); 629reporter.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_OverrideNotice); 630reporter.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Info_PackageIsAvailable); 633reporter.WriteLine($"{request.PackageInfo.Id}@{request.PackageInfo.Version}".Indent()); 715Reporter.Error.WriteLine( 730Reporter.Error.WriteLine( 736Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_UninstallCommandHeader); 757Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader); 766Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader); 820Reporter.Error.WriteLine( 828Reporter.Error.WriteLine( 835Reporter.Error.WriteLine( 842Reporter.Error.WriteLine( 890Reporter.Verbose.WriteLine($"Custom source {source} is already loaded from default configuration."); 896Reporter.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( 229Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_InstalledItems); 233Reporter.Output.WriteLine(LocalizableStrings.NoItems); 239Reporter.Output.WriteLine($"{managedSource.Identifier}".Indent()); 242Reporter.Output.WriteLine($"{LocalizableStrings.Version} {managedSource.Version}".Indent(level: 2)); 248Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_DetailsHeader.Indent(level: 2)); 251Reporter.Output.WriteLine($"{detail.Key}: {GetFormattedValue(detail.Value)}".Indent(level: 3)); 258Reporter.Output.WriteLine($"{LocalizableStrings.Templates}:".Indent(level: 2)); 261Reporter.Output.WriteLine(info.GetDisplayName().Indent(level: 3)); 266Reporter.Output.WriteLine($"{LocalizableStrings.TemplatePackageCoordinator_Uninstall_Info_UninstallCommandHint}".Indent(level: 2)); 285Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAvailablePackages); 299Reporter.Output.WriteLine(formatter.Layout()); 302Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader); 314Reporter.Output.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Update_Info_UpdateAllCommandHeader); 340_reporterError.WriteLine( 348_reporterError.WriteLine( 355_reporterError.WriteLine( 362_reporterError.WriteLine( 371_reporterError.WriteLine( 385reporter.WriteLine($"{string.Empty.PadLeft(4)}{_vulnerabilitySeverityToColorMap[entry.Severity].Bold()}:"); 386reporter.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)
44Reporter.Verbose.WriteLine($"Error deserializing the cli host specific template data for template {data.Key}, details:{ex}"); 51Reporter.Verbose.WriteLine($"Error deserializing the cli host specific template data {cacheObject}, details:{ex}");
TemplateSearch\CliTemplateSearchCoordinator.cs (10)
46Reporter.Output.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_SearchInProgress); 60Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoSources.Bold().Red()); 69Reporter.Error.WriteLine(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).Red().Bold()); 83Reporter.Error.WriteLine( 94Reporter.Output.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_InstallHelp); 100Reporter.Output.WriteLine(LocalizableStrings.Generic_ExampleHeader); 203Reporter.Output.WriteLine(formatter.Layout()); 256Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_NoTemplateName.Red().Bold()); 258Reporter.Error.WriteLine(LocalizableStrings.Generic_ExamplesHeader); 283Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().Red());