31 references to GracefulException
dotnet (31)
Commands\Package\List\PackageListCommand.cs (4)
148
throw new
GracefulException
(CliStrings.MoreThanOneSolutionInDirectory, resultPath);
165
throw new
GracefulException
(CliCommandStrings.NoProjectsOrSolutions, resultPath);
175
throw new
GracefulException
(CliStrings.MoreThanOneProjectInDirectory, resultPath);
182
throw new
GracefulException
(CliCommandStrings.PackageListFileNotFound, resultPath);
Commands\Package\PackageCommandParser.cs (1)
111
(true, true) => throw new Utils.
GracefulException
(CliCommandStrings.CannotCombineOptions, fileOption.Name, projectOption.Name),
Commands\Project\Convert\ProjectConvertCommand.cs (4)
43
throw new
GracefulException
(CliCommandStrings.InvalidFilePath, file);
306
throw new
GracefulException
(CliCommandStrings.ProjectConvertDuplicateRefFolderName, refTargetDirectory);
311
throw new
GracefulException
(CliCommandStrings.DirectoryAlreadyExists, refTargetDirectory);
533
throw new
GracefulException
(CliCommandStrings.DirectoryAlreadyExists, targetDirectory);
Commands\Run\RunCommand.cs (8)
147
throw new
GracefulException
(CliCommandStrings.CannotCombineOptions, RunCommandDefinition.NoCacheOptionName, RunCommandDefinition.NoBuildOptionName);
704
throw new
GracefulException
(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, Constants.ComputeRunArguments);
753
throw new
GracefulException
(CliCommandStrings.CmdNonExistentFileErrorDescription, projectFilePath);
764
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionNoProjects, projectFileOrDirectoryPath, "--project");
780
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionMultipleProjects, directory);
851
throw new
GracefulException
(CliCommandStrings.CannotCombineOptions, definition.ProjectOption.Name, definition.FileOption.Name);
906
throw new
GracefulException
(CliCommandStrings.InvalidOptionForStdin, definition.NoBuildOption.Name);
911
throw new
GracefulException
(CliCommandStrings.InvalidOptionForStdin, definition.LaunchProfileOption.Name);
Commands\Solution\List\SolutionListCommand.cs (1)
34
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
61
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
366
throw new
GracefulException
(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, s_computeRunArgumentsTarget[0]);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
142
throw new
GracefulException
(
MsbuildProject.cs (3)
57
throw new
GracefulException
(CliStrings.ProjectDoesNotExist, projectPath);
63
throw new
GracefulException
(CliStrings.ProjectIsInvalid, projectPath);
76
throw new
GracefulException
(CliStrings.FoundInvalidProject, projectFilePath);
ReleasePropertyProjectLocator.cs (1)
193
throw new
GracefulException
(Strings.SolutionProjectConfigurationsConflict, propertyToCheck, string.Join("\n", (configuredProjects).Select(x => x.FullPath)));
SlnFileFactory.cs (6)
36
throw new
GracefulException
(
42
throw new
GracefulException
(
48
throw new
GracefulException
(
79
throw new
GracefulException
(
106
throw new
GracefulException
(
129
.Select(path => originalSolution.FindProject(path) ?? throw new
GracefulException
(