37 references to GracefulException
dotnet (37)
Commands\Package\Add\PackageAddCommand.cs (1)
162
throw new
GracefulException
(CliCommandStrings.InvalidOptionForFileBasedApp, option.Name);
Commands\Package\List\PackageListCommand.cs (4)
144
throw new
GracefulException
(CliStrings.MoreThanOneSolutionInDirectory, resultPath);
161
throw new
GracefulException
(CliCommandStrings.NoProjectsOrSolutions, resultPath);
171
throw new
GracefulException
(CliStrings.MoreThanOneProjectInDirectory, resultPath);
178
throw new
GracefulException
(CliCommandStrings.PackageListFileNotFound, resultPath);
Commands\Package\PackageCommandParser.cs (1)
62
(true, true) => throw new
GracefulException
(CliCommandStrings.CannotCombineOptions, FileOption.Name, ProjectOption.Name),
Commands\Project\Convert\ProjectConvertCommand.cs (2)
25
throw new
GracefulException
(CliCommandStrings.InvalidFilePath, file);
165
throw new
GracefulException
(CliCommandStrings.DirectoryAlreadyExists, targetDirectory);
Commands\Run\LaunchSettings\LaunchSettingsManager.cs (1)
61
throw new
GracefulException
(CliCommandStrings.DuplicateCaseInsensitiveLaunchProfileNames,
Commands\Run\RunCommand.cs (9)
141
throw new
GracefulException
(CliCommandStrings.CannotCombineOptions, RunCommandParser.NoCacheOption.Name, RunCommandParser.NoBuildOption.Name);
495
throw new
GracefulException
(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, Constants.ComputeRunArguments);
508
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyFramework, "--framework");
544
throw new
GracefulException
(CliCommandStrings.CmdNonExistentFileErrorDescription, projectFilePath);
555
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionNoProjects, projectFileOrDirectoryPath, "--project");
571
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionMultipleProjects, directory);
640
throw new
GracefulException
(CliCommandStrings.CannotCombineOptions, RunCommandParser.ProjectOption.Name, RunCommandParser.FileOption.Name);
660
throw new
GracefulException
(CliCommandStrings.InvalidOptionForStdin, RunCommandParser.NoBuildOption.Name);
665
throw new
GracefulException
(CliCommandStrings.InvalidOptionForStdin, RunCommandParser.LaunchProfileOption.Name);
Commands\Run\VirtualProjectBuildingCommand.cs (1)
1884
throw new
GracefulException
(CliStrings.CouldNotFindProjectOrDirectory, resolvedProjectPath);
Commands\Solution\List\SolutionListCommand.cs (1)
28
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
53
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
358
throw new
GracefulException
(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, s_computeRunArgumentsTarget[0]);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
139
throw new
GracefulException
(
MsbuildProject.cs (7)
55
throw new
GracefulException
(CliStrings.ProjectDoesNotExist, projectPath);
61
throw new
GracefulException
(CliStrings.ProjectIsInvalid, projectPath);
74
throw new
GracefulException
(CliStrings.FoundInvalidProject, projectFile.FullName);
89
throw new
GracefulException
(CliStrings.CouldNotFindProjectOrDirectory, projectDirectory);
94
throw new
GracefulException
(CliStrings.CouldNotFindProjectOrDirectory, projectDirectory);
100
throw new
GracefulException
(
107
throw new
GracefulException
(CliStrings.MoreThanOneProjectInDirectory, projectDirectory);
ReleasePropertyProjectLocator.cs (1)
207
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
(
99
throw new
GracefulException
(
122
.Select(path => originalSolution.FindProject(path) ?? throw new
GracefulException
(