24 instantiations of ProjectLocatorException
aspire (7)
Projects\ProjectLocator.cs (7)
302throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 325throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 340throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 345throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 357throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 378throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound); 382throw new ProjectLocatorException(ErrorStrings.AppHostsMayNotBeBuildable);
Aspire.Cli.Tests (17)
Commands\ExecCommandTests.cs (7)
171throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 176throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 181throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 189throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 215throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 220throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 225throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.");
Commands\RunCommandTests.cs (7)
95throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 100throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 105throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 153throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 158throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 163throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 171throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found.");
TestServices\NoProjectFileProjectLocator.cs (3)
12throw new ProjectLocatorException("No project file found."); 17throw new ProjectLocatorException("No project file found."); 22throw new ProjectLocatorException("No project file found.");
21 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)
275catch (ProjectLocatorException ex)
Commands\PublishCommandBase.cs (1)
224catch (ProjectLocatorException ex)
Commands\RunCommand.cs (1)
345catch (ProjectLocatorException ex)
Commands\UpdateCommand.cs (1)
65catch (ProjectLocatorException ex)
Aspire.Cli.Tests (15)
Projects\ProjectLocatorTests.cs (15)
44var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => { 240var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>{ 554var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 588var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 611var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 785await Assert.ThrowsAsync<ProjectLocatorException>(() => 840var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 947var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>