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