18 instantiations of ProjectLocatorException
aspire (6)
Projects\ProjectLocator.cs (6)
223throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 238throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 243throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 255throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 276throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound); 280throw new ProjectLocatorException(ErrorStrings.AppHostsMayNotBeBuildable);
Aspire.Cli.Tests (12)
Commands\ExecCommandTests.cs (5)
171throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 176throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 184throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 201throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 206throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.");
Commands\RunCommandTests.cs (5)
90throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 95throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 143throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 148throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 156throw 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.");
17 references to ProjectLocatorException
aspire (6)
Commands\AddCommand.cs (1)
187catch (ProjectLocatorException ex)
Commands\BaseCommand.cs (1)
56internal static int HandleProjectLocatorException(ProjectLocatorException ex, IInteractionService interactionService)
Commands\ExecCommand.cs (1)
269catch (ProjectLocatorException ex)
Commands\PublishCommandBase.cs (1)
197catch (ProjectLocatorException ex)
Commands\RunCommand.cs (1)
294catch (ProjectLocatorException ex)
Commands\UpdateCommand.cs (1)
49catch (ProjectLocatorException ex)
Aspire.Cli.Tests (11)
Projects\ProjectLocatorTests.cs (11)
43var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => { 239var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>{ 553var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 587var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 610var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 784await Assert.ThrowsAsync<ProjectLocatorException>(() =>