27 instantiations of ProjectLocatorException
aspire (8)
Projects\ProjectLocator.cs (8)
297throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 324throw new ProjectLocatorException(ErrorStrings.MultipleProjectFilesFound); 335throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 353throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 365throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 387throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound); 391throw new ProjectLocatorException(ErrorStrings.AppHostsMayNotBeBuildable); 401MultipleAppHostProjectsFoundBehavior.Throw => throw new ProjectLocatorException(ErrorStrings.MultipleProjectFilesFound),
Aspire.Cli.Tests (19)
Commands\ExecCommandTests.cs (9)
172throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 177throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 182throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 190throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 195throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 200throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 208throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 213throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 218throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.");
Commands\ExtensionInternalCommandTests.cs (2)
325throw new ProjectLocatorException("No AppHost project found."); 333throw new ProjectLocatorException("No AppHost project found.");
Commands\RunCommandTests.cs (6)
96throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 101throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 154throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 159throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 172throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 177throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found.");
TestServices\NoProjectFileProjectLocator.cs (2)
12throw new ProjectLocatorException("No project file found."); 17throw new ProjectLocatorException("No project file found.");
16 references to ProjectLocatorException
aspire (6)
Commands\AddCommand.cs (1)
193catch (ProjectLocatorException ex)
Commands\BaseCommand.cs (1)
56internal static int HandleProjectLocatorException(ProjectLocatorException ex, IInteractionService interactionService)
Commands\ExecCommand.cs (1)
281catch (ProjectLocatorException ex)
Commands\PipelineCommandBase.cs (1)
253catch (ProjectLocatorException ex)
Commands\RunCommand.cs (1)
350catch (ProjectLocatorException ex)
Commands\UpdateCommand.cs (1)
126catch (ProjectLocatorException ex)
Aspire.Cli.Tests (10)
Projects\ProjectLocatorTests.cs (10)
45var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => { 241var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>{ 558var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 610var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 779var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>