49 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)
47throw new GracefulException(CliCommandStrings.InvalidFilePath, file); 326throw new GracefulException(CliCommandStrings.ProjectConvertDuplicateRefFolderName, refTargetDirectory); 331throw 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\CommonRunHelpers.cs (1)
33? throw new GracefulException(CliCommandStrings.RunCommandExceptionMultipleProjects, directory)
Commands\Run\RunCommand.cs (6)
677throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, Constants.ComputeRunArguments); 728throw new GracefulException(CliCommandStrings.CmdNonExistentFileErrorDescription, projectFilePath); 739throw new GracefulException(CliCommandStrings.RunCommandExceptionNoProjects, projectFileOrDirectoryPath, "--project"); 808throw new GracefulException(CliCommandStrings.CannotCombineOptions, definition.ProjectOption.Name, definition.FileOption.Name); 863throw new GracefulException(CliCommandStrings.InvalidOptionForStdin, definition.NoBuildOption.Name); 868throw 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)
665throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, s_computeRunArgumentsTarget[0]);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
143throw new GracefulException(
MsbuildProject.cs (3)
69throw new GracefulException(CliStrings.ProjectDoesNotExist, projectPath); 75throw new GracefulException(CliStrings.ProjectIsInvalid, projectPath); 88throw new GracefulException(CliStrings.FoundInvalidProject, projectFilePath);
ReleasePropertyProjectLocator.cs (1)
200throw 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 (14)
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (2)
343throw new GracefulException(CliCommandStrings.RunCommandExceptionNoProjects, currentDirectory, "--project"); 374throw new GracefulException(CliCommandStrings.RunCommandExceptionNoProjects, currentDirectory, "--project");
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (1)
33? throw new GracefulException(CliCommandStrings.RunCommandExceptionMultipleProjects, directory)
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\MsbuildProject.cs (3)
69throw new GracefulException(CliStrings.ProjectDoesNotExist, projectPath); 75throw new GracefulException(CliStrings.ProjectIsInvalid, projectPath); 88throw new GracefulException(CliStrings.FoundInvalidProject, projectFilePath);
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(