Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (19)
28throw new Exception(string.Format(CliCommandStrings.ProjectCapabilityConstraintFactory_Exception_NoEvaluator, Type, nameof(MSBuildEvaluator)));
39throw new Exception(string.Format(CliCommandStrings.ProjectCapabilityConstraintFactory_Exception_EvaluationFailed, Type, e.Message), e);
63public string DisplayName => CliCommandStrings.ProjectCapabilityConstraint_DisplayName;
81throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}:{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidJson}.", e);
92throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}: {CliCommandStrings.ProjectCapabilityConstraint_Error_ArgumentShouldNotBeEmpty}.");
99throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}: {CliCommandStrings.ProjectCapabilityConstraint_Error_ArgumentShouldBeString}.");
107_evaluationResult.ErrorMessage ?? CliCommandStrings.MSBuildEvaluationResult_Error_NoProjectFound,
108CliCommandStrings.ProjectCapabilityConstraint_Restricted_NoProjectFound_CTA);
116_evaluationResult.ErrorMessage ?? string.Format(CliCommandStrings.MultipleProjectsEvaluationResult_Error, foundProjects),
117string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_MultipleProjectsFound_CTA, SharedOptionsFactory.ProjectOptionName));
124_evaluationResult.ErrorMessage ?? string.Format(CliCommandStrings.MSBuildEvaluationResult_Error_NotRestored, _evaluationResult.ProjectPath),
125string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_NotRestored_CTA, _evaluationResult.ProjectPath));
130return TemplateConstraintResult.CreateRestricted(this, string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_EvaluationFailed_Message, _evaluationResult.ErrorMessage));
135return TemplateConstraintResult.CreateRestricted(this, string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_NonSDKStyle_Message, _evaluationResult.ProjectPath));
146string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_Message, configuredCapabiltiesExpression, _evaluationResult.ProjectPath));
154throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}:{ae.Message}.", ae);
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (17)
48Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_ActionMisconfigured);
58Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_UnresolvedProjFile);
59Reporter.Error.WriteLine(CliCommandStrings.PostAction_AddReference_Error_ProjFileListHeader);
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\Project\Convert\ProjectConvertCommand.cs (19)
46throw new GracefulException(CliCommandStrings.InvalidFilePath, file);
147Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldCopyFile, sourceFile, targetFile);
148Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldConvertFile, targetFile);
161Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldCreateFile, projectFile);
204Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldCreateDirectory, path);
217Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldCopyFile, source, target);
229Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldDeleteSourceFile, path);
234Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertDeletedSourceFile, path);
257Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldCopyFile, item.FullPath, targetItemFullPath);
258Reporter.Output.WriteLine(CliCommandStrings.ProjectConvertWouldConvertFile, targetItemFullPath);
324throw new GracefulException(CliCommandStrings.ProjectConvertDuplicateRefFolderName, refTargetDirectory);
329throw new GracefulException(CliCommandStrings.DirectoryAlreadyExists, refTargetDirectory);
615var prompt = new TextPrompt<string>(string.Format(CliCommandStrings.ProjectConvertAskForOutputDirectory, defaultValueRelative))
624return ValidationResult.Error(string.Format(CliCommandStrings.DirectoryAlreadyExists, pathToValidate));
647throw new GracefulException(CliCommandStrings.DirectoryAlreadyExists, targetDirectory);
664.Title($"[cyan]{Markup.Escape(CliCommandStrings.ProjectConvertAskDeleteSource)}[/]")
665.AddChoices([CliCommandStrings.ProjectConvertDeleteSourceChoiceYes, CliCommandStrings.ProjectConvertDeleteSourceChoiceNo])
668return choice == CliCommandStrings.ProjectConvertDeleteSourceChoiceYes;
Commands\Run\RunCommand.cs (19)
172Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, LaunchProfileParser.GetLaunchProfileDisplayName(LaunchProfile), launchProfileParseResult.FailureReason).Bold().Red());
183Reporter.Output.WriteLine(CliCommandStrings.RunCommandBuilding);
210throw new GracefulException(CliCommandStrings.RunCommandDeployFailed);
227string.Format(CliCommandStrings.RunCommandSpecifiedFileIsNotAValidProject, ProjectFileFullPath),
463Reporter.Error.WriteLine(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath));
513throw new GracefulException(CliCommandStrings.RunCommandException);
636throw new GracefulException(string.Format(CliCommandStrings.RunCommandSpecifiedFileIsNotAValidProject, projectFilePath), e);
718throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, Constants.ComputeRunArguments);
730CliCommandStrings.RunCommandExceptionUnableToRun,
769throw new GracefulException(CliCommandStrings.CmdNonExistentFileErrorDescription, projectFilePath);
780throw new GracefulException(CliCommandStrings.RunCommandExceptionNoProjects, projectFileOrDirectoryPath, "--project");
796throw new GracefulException(CliCommandStrings.RunCommandExceptionMultipleProjects, directory);
838Reporter.Output.WriteLine(CliCommandStrings.RunCommandProjectAbbreviationDeprecated.Yellow());
866throw new GracefulException(CliCommandStrings.CannotCombineOptions, definition.ProjectOption.Name, definition.FileOption.Name);
899string.Format(CliCommandStrings.RunCommandWarningFileArgumentPassedToProject, arg, projectFilePath).Yellow());
906string.Format(CliCommandStrings.RunCommandWarningCsFileArgumentPassedToProject, arg, projectFilePath).Yellow());
921throw new GracefulException(CliCommandStrings.InvalidOptionForStdin, definition.NoBuildOption.Name);
926throw new GracefulException(CliCommandStrings.InvalidOptionForStdin, definition.LaunchProfileOption.Name);
987Reporter.Error.WriteLine(CliCommandStrings.RunCommandWarningUnableToDetermineLoggerArguments.Yellow());
Commands\Test\MTP\SolutionAndProjectUtility.cs (12)
42return (false, string.Format(CliCommandStrings.CmdNonExistentDirectoryErrorDescription, directory));
60return (false, CliCommandStrings.CmdMultipleProjectOrSolutionFilesErrorDescription);
113return (false, CliCommandStrings.CmdNoProjectOrSolutionFileErrorDescription);
125return (false, CliCommandStrings.CmdMultipleProjectOrSolutionFilesErrorDescription);
138return (false, string.Format(CliCommandStrings.CmdNonExistentDirectoryErrorDescription, directory));
443string.Format(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyDevice, "--device"));
487CliCommandStrings.RunCommandExceptionUnableToRun,
542throw new GracefulException(CliCommandStrings.RunCommandDeployFailed);
547throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, s_computeRunArgumentsTarget[0]);
575Reporter.Output.WriteLine(string.Format(CliCommandStrings.RunCommandWarningRunJsonNotUsed, runJsonPath, launchSettingsPath).Yellow());
590Reporter.Error.WriteLine(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath));
596Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionCouldNotApplyLaunchSettings, profileName, result.FailureReason).Bold().Red());
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (51)
154terminal.Append($"({string.Format(CliCommandStrings.Try, currentAttemptNumber)}) ");
158terminal.Append(_isDiscovery ? CliCommandStrings.DiscoveringTestsFrom : CliCommandStrings.RunningTestsFrom);
232terminal.AppendLine(artifactGroup.Key ? CliCommandStrings.OutOfProcessArtifactsProduced : CliCommandStrings.InProcessArtifactsProduced);
239terminal.Append(CliCommandStrings.ForTest);
263terminal.Append(CliCommandStrings.TestRunSummary);
268terminal.Append(CliCommandStrings.Aborted);
272terminal.Append(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.MinimumExpectedTestsPolicyViolation, totalTests, _options.MinimumExpectedTests));
281terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed));
285terminal.Append(CliCommandStrings.ZeroTestsRan);
289terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed));
293terminal.Append(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Passed));
337string errorText = $"{SingleIndentation}{CliCommandStrings.ErrorColon} {error}";
338string totalText = $"{SingleIndentation}{CliCommandStrings.TotalColon} {total}";
339string retriedText = $" (+{retried} {CliCommandStrings.Retried})";
340string failedText = $"{SingleIndentation}{CliCommandStrings.FailedColon} {failed}";
341string passedText = $"{SingleIndentation}{CliCommandStrings.SucceededColon} {passed}";
342string skippedText = $"{SingleIndentation}{CliCommandStrings.SkippedColon} {skipped}";
343string durationText = $"{SingleIndentation}{CliCommandStrings.DurationColon} ";
427terminal.AppendLine(CliCommandStrings.HandshakeFailuresHeader);
448terminal.AppendLine(string.Format(isRun ? CliCommandStrings.TestRunExitCode : CliCommandStrings.TestDiscoveryExitCode, exitCode));
462(true, _) => string.Format(CultureInfo.CurrentCulture, CliCommandStrings.FailedWithErrors, state.FailedTests),
463(false, true) => CliCommandStrings.ZeroTestsRan,
464(false, false) => CliCommandStrings.FailedLowercase,
472terminal.Append(CliCommandStrings.PassedLowercase);
568TestOutcome.Fail or TestOutcome.Error => CliCommandStrings.FailedLowercase,
569TestOutcome.Skipped => CliCommandStrings.SkippedLowercase,
570TestOutcome.Canceled or TestOutcome.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})",
571TestOutcome.Passed => CliCommandStrings.PassedLowercase,
580terminal.Append($" ({string.Format(CliCommandStrings.Try, attempt)})");
603terminal.Append(CliCommandStrings.FromFile);
675terminal.AppendLine(CliCommandStrings.Expected);
678terminal.AppendLine(CliCommandStrings.Actual);
711terminal.AppendLine(CliCommandStrings.StandardOutput);
715terminal.AppendLine(CliCommandStrings.StandardError);
752terminal.Append(CliCommandStrings.StackFrameAt);
767terminal.Append(CliCommandStrings.StackFrameIn);
884terminal.Append(CliCommandStrings.ZeroTestsRan);
893terminal.Append(CliCommandStrings.ExitCode);
896AppendOutputWhenPresent(CliCommandStrings.StandardOutput, TruncateOutputForSummary(outputData));
897AppendOutputWhenPresent(CliCommandStrings.StandardError, errorData);
938builder.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestApplicationOutputTruncated, omitted));
1071terminal.AppendLine(CliCommandStrings.CancellingTestSession);
1072terminal.AppendLine(CliCommandStrings.PressCtrlCAgainToForceExit);
1111terminal.Append(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.DiscoveredTestsInAssembly, discoveredTestNames.Count));
1144terminal.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestDiscoverySummarySingular, totalTests));
1148terminal.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestDiscoverySummary, totalTests, assemblies.Count));
1156terminal.Append(CliCommandStrings.Aborted);
Commands\Test\MTP\TestApplicationHandler.cs (27)
40? string.Format(CliCommandStrings.DotnetTestIncompatibleHandshakeVersion, supportedProtocolVersions, ProtocolConstants.SupportedVersions)
41: string.Format(CliCommandStrings.DotnetTestMissingHandshakeProtocolVersions, ProtocolConstants.SupportedVersions);
79ReportHandshakeFailure(string.Format(CliCommandStrings.MismatchingHandshakeInfo, currentHandshakeInfo, _handshakeInfo.Value));
120ReportHandshakeFailure(string.Format(CliCommandStrings.MismatchingHandshakeExecutionMode, executionMode, expectedExecutionMode));
168CliCommandStrings.DotnetTestMissingRequiredMessageProperty,
179CliCommandStrings.DotnetTestMissingRequiredMessageProperty,
211throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(DiscoveredTestMessages)));
216throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(DiscoveredTestMessages)));
223throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutTestHostHandshake, nameof(DiscoveredTestMessages)));
234throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, executionId, nameof(DiscoveredTestMessages), _handshakeInfo.Value.ExecutionId));
253throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(TestResultMessages)));
258throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(TestResultMessages)));
263throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutTestHostHandshake, nameof(TestResultMessages)));
274throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, messageExecutionId, nameof(TestResultMessages), _handshakeInfo.Value.ExecutionId));
322throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(TestInProgressMessages)));
327throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(TestInProgressMessages)));
333throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, testInProgressMessages.ExecutionId, nameof(TestInProgressMessages), _handshakeInfo.Value.ExecutionId));
356throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(FileArtifactMessages)));
361throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(FileArtifactMessages)));
366throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutTestHostHandshake, nameof(FileArtifactMessages)));
377throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, fileArtifactExecutionId, nameof(FileArtifactMessages), _handshakeInfo.Value.ExecutionId));
403throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(TestSessionEvent)));
408throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(TestSessionEvent)));
419throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, sessionExecutionId, nameof(TestSessionEvent), _handshakeInfo.Value.ExecutionId));
425CliCommandStrings.DotnetTestMissingRequiredMessageProperty,
444throw new InvalidOperationException(CliCommandStrings.UnexpectedTestSessionEnd);
449throw new InvalidOperationException(string.Format(CliCommandStrings.UnknownSessionEventType, sessionEvent.SessionType));
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (9)
178throw new GracefulException(string.Format(CliCommandStrings.ToolInstallNuGetConfigurationFileDoesNotExist, Path.GetFullPath(_configFilePath)));
206_reporter.WriteLine(string.Format(CliCommandStrings.ToolAlreadyInstalled, oldPackage.Id, oldPackage.Version.ToNormalizedString()).Green());
293string.Format(CliCommandStrings.UpdateToLowerVersion,
307CliCommandStrings.ToolInstallNuGetConfigurationFileDoesNotExist,
323string.Format(CliCommandStrings.UpdateToolFailed, packageId)
345string.Format(CliCommandStrings.UpdateToolFailed, packageId)
377string.Format(CliCommandStrings.ToolUpdateToolHasMultipleVersionsInstalled, packageId)
390CliCommandStrings.ToolInstallInstallationSucceeded,
399CliCommandStrings.ToolUpdateUpdateSucceeded,
Commands\Workload\Install\FileBasedInstaller.cs (16)
123throw new Exception(string.Format(CliCommandStrings.FailedToInstallWorkloadSet, workloadSetVersion, ex.Message), ex);
154_reporter.WriteLine(string.Format(CliCommandStrings.WorkloadPackAlreadyInstalledMessage, packInfo.ResolvedPackageId, packInfo.Version));
177_reporter.WriteLine(string.Format(CliCommandStrings.UsingCacheForPackInstall, packInfo.ResolvedPackageId, packInfo.Version, offlineCache));
181throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, 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));
300throw new Exception(string.Format(CliCommandStrings.FailedToInstallWorkloadManifest, manifestUpdate.ManifestId, manifestUpdate.NewVersion, e.Message), e);
323throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, packageId, packageVersion, offlineCache));
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\WorkloadInstallCommand.cs (15)
66throw new GracefulException(CliCommandStrings.CannotSpecifyVersionAndWorkloadIdsByComponent, isUserError: true);
97Reporter.WriteLine(CliCommandStrings.AspireWorkloadDeprecated.Yellow());
116CliCommandStrings.WorkloadNotSupportedOnPlatform : CliCommandStrings.WorkloadNotRecognized;
163throw new GracefulException(string.Format(CliCommandStrings.WorkloadInstallWorkloadCacheDownloadFailed, e.Message), e, isUserError: false);
168throw new GracefulException(string.Format(CliCommandStrings.CannotCombineSkipManifestAndRollback,
175throw new GracefulException(string.Format(CliCommandStrings.CannotCombineSkipManifestAndVersion,
182throw new GracefulException(string.Format(CliCommandStrings.CannotUseSkipManifestWithGlobalJsonWorkloadVersion,
212throw new GracefulException(string.Format(CliCommandStrings.WorkloadInstallationFailed, e.Message), e, isUserError: false);
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 (8)
181Console.WriteLine(CliCommandStrings.WorkloadInstallWorkloadUpdatesAvailable);
261_reporter.WriteLine(string.Format(CliCommandStrings.RollbackDefinitionContainsExtraneousManifestIds, rollbackDefinitionFilePath, string.Join(" ", unrecognizedManifestIds)).Yellow());
309_reporter.WriteLine(CliCommandStrings.ManifestPackageUrlNotResolved, providedPackageId);
314_reporter.WriteLine(CliCommandStrings.ManifestPackageUrlNotResolved, manifest.Id);
373_reporter.WriteLine(CliCommandStrings.AdManifestUpdated, manifestId);
380_reporter.WriteLine(CliCommandStrings.FailedAdManifestUpdate, manifestId, e.Message);
419_reporter.WriteLine(CliCommandStrings.AdManifestPackageDoesNotExist, manifest.Id);
514throw new ArgumentException(string.Format(CliCommandStrings.RollbackDefinitionFileDoesNotExist, rollbackDefinitionFilePath));
Commands\Workload\InstallingWorkloadCommand.cs (14)
65throw new GracefulException(CliCommandStrings.NoWorkloadHistoryRecords, isUserError: true);
72throw new GracefulException(CliCommandStrings.WorkloadHistoryRecordInvalidIdValue, isUserError: true);
118throw new GracefulException(CliCommandStrings.SdkVersionOptionNotSupported);
141throw new GracefulException(string.Format(CliCommandStrings.CannotSpecifyVersionOnCommandLineAndInGlobalJson, _globalJsonPath), isUserError: true);
145throw new GracefulException(string.Format(CliCommandStrings.CannotCombineOptions,
151throw new GracefulException(string.Format(CliCommandStrings.CannotCombineOptions,
157throw new GracefulException(CliCommandStrings.SpecifiedWorkloadVersionAndSpecificNonWorkloadVersion, isUserError: true);
161throw new GracefulException(CliCommandStrings.SpecifiedNoWorkloadVersionAndSpecificWorkloadVersion, isUserError: true);
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));