31 references to GracefulException
dotnet (31)
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)
43throw new GracefulException(CliCommandStrings.InvalidFilePath, file); 306throw new GracefulException(CliCommandStrings.ProjectConvertDuplicateRefFolderName, refTargetDirectory); 311throw new GracefulException(CliCommandStrings.DirectoryAlreadyExists, refTargetDirectory); 533throw new GracefulException(CliCommandStrings.DirectoryAlreadyExists, targetDirectory);
Commands\Run\RunCommand.cs (8)
147throw new GracefulException(CliCommandStrings.CannotCombineOptions, RunCommandDefinition.NoCacheOptionName, RunCommandDefinition.NoBuildOptionName); 704throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, Constants.ComputeRunArguments); 753throw new GracefulException(CliCommandStrings.CmdNonExistentFileErrorDescription, projectFilePath); 764throw new GracefulException(CliCommandStrings.RunCommandExceptionNoProjects, projectFileOrDirectoryPath, "--project"); 780throw new GracefulException(CliCommandStrings.RunCommandExceptionMultipleProjects, directory); 851throw new GracefulException(CliCommandStrings.CannotCombineOptions, definition.ProjectOption.Name, definition.FileOption.Name); 906throw new GracefulException(CliCommandStrings.InvalidOptionForStdin, definition.NoBuildOption.Name); 911throw 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)
366throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, s_computeRunArgumentsTarget[0]);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
142throw new GracefulException(
MsbuildProject.cs (3)
57throw new GracefulException(CliStrings.ProjectDoesNotExist, projectPath); 63throw new GracefulException(CliStrings.ProjectIsInvalid, projectPath); 76throw new GracefulException(CliStrings.FoundInvalidProject, projectFilePath);
ReleasePropertyProjectLocator.cs (1)
193throw 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( 106throw new GracefulException( 129.Select(path => originalSolution.FindProject(path) ?? throw new GracefulException(