43 references to GracefulException
dotnet (35)
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)
46
throw new
GracefulException
(CliCommandStrings.InvalidFilePath, file);
324
throw new
GracefulException
(CliCommandStrings.ProjectConvertDuplicateRefFolderName, refTargetDirectory);
329
throw new
GracefulException
(CliCommandStrings.DirectoryAlreadyExists, refTargetDirectory);
647
throw new
GracefulException
(CliCommandStrings.DirectoryAlreadyExists, targetDirectory);
Commands\Reference\Add\ReferenceAddCommand.cs (2)
43
throw new
GracefulException
(CliCommandStrings.InvalidFilePath, _fileOrDirectory);
117
throw new
GracefulException
(CliCommandStrings.InvalidOptionForFileBasedApp, Definition.FrameworkOption.Name);
Commands\Reference\List\ReferenceListCommand.cs (1)
42
throw new
GracefulException
(CliCommandStrings.InvalidFilePath, _fileOrDirectory);
Commands\Reference\Remove\ReferenceRemoveCommand.cs (2)
46
throw new
GracefulException
(CliCommandStrings.InvalidFilePath, _fileOrDirectory);
80
throw new
GracefulException
(CliCommandStrings.InvalidOptionForFileBasedApp, Definition.FrameworkOption.Name);
Commands\Run\RunCommand.cs (7)
718
throw new
GracefulException
(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, Constants.ComputeRunArguments);
769
throw new
GracefulException
(CliCommandStrings.CmdNonExistentFileErrorDescription, projectFilePath);
780
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionNoProjects, projectFileOrDirectoryPath, "--project");
796
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionMultipleProjects, directory);
866
throw new
GracefulException
(CliCommandStrings.CannotCombineOptions, definition.ProjectOption.Name, definition.FileOption.Name);
921
throw new
GracefulException
(CliCommandStrings.InvalidOptionForStdin, definition.NoBuildOption.Name);
926
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)
630
throw new
GracefulException
(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, s_computeRunArgumentsTarget[0]);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
143
throw new
GracefulException
(
MsbuildProject.cs (3)
72
throw new
GracefulException
(CliStrings.ProjectDoesNotExist, projectPath);
78
throw new
GracefulException
(CliStrings.ProjectIsInvalid, projectPath);
91
throw new
GracefulException
(CliStrings.FoundInvalidProject, projectFilePath);
ReleasePropertyProjectLocator.cs (1)
197
throw new
GracefulException
(Strings.SolutionProjectConfigurationsConflict, propertyToCheck, string.Join("\n", (configuredProjects).Select(x => x.FullPath)));
SlnFileFactory.cs (6)
37
throw new
GracefulException
(
43
throw new
GracefulException
(
49
throw new
GracefulException
(
80
throw new
GracefulException
(
111
throw new
GracefulException
(
134
.Select(path => originalSolution.FindProject(path) ?? throw new
GracefulException
(
dotnet-aot (8)
src\sdk\src\Cli\dotnet\Commands\Solution\List\SolutionListCommand.cs (1)
34
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
src\sdk\src\Cli\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
61
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
src\sdk\src\Cli\dotnet\SlnFileFactory.cs (6)
37
throw new
GracefulException
(
43
throw new
GracefulException
(
49
throw new
GracefulException
(
80
throw new
GracefulException
(
111
throw new
GracefulException
(
134
.Select(path => originalSolution.FindProject(path) ?? throw new
GracefulException
(