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