24 instantiations of ProjectLocatorException
aspire (7)
Projects\ProjectLocator.cs (7)
188throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 215throw new ProjectLocatorException(ErrorStrings.MultipleProjectFilesFound); 226throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 245throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 266throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound); 270throw new ProjectLocatorException(ErrorStrings.AppHostsMayNotBeBuildable); 280MultipleAppHostProjectsFoundBehavior.Throw => throw new ProjectLocatorException(ErrorStrings.MultipleProjectFilesFound),
Aspire.Cli.Tests (17)
Commands\ExecCommandTests.cs (6)
173throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 178throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 186throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 191throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 199throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 204throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.");
Commands\ExtensionInternalCommandTests.cs (2)
306throw new ProjectLocatorException("No AppHost project found."); 314throw new ProjectLocatorException("No AppHost project found.");
Commands\RunCommandTests.cs (6)
168throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 173throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 221throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 226throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 234throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 239throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found.");
Commands\UpdateCommandTests.cs (1)
177throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound);
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)
252catch (ProjectLocatorException ex)
Commands\BaseCommand.cs (1)
67internal static int HandleProjectLocatorException(ProjectLocatorException ex, IInteractionService interactionService, AspireCliTelemetry telemetry)
Commands\ExecCommand.cs (1)
277catch (ProjectLocatorException ex)
Commands\PipelineCommandBase.cs (1)
249catch (ProjectLocatorException ex)
Commands\RunCommand.cs (1)
373catch (ProjectLocatorException ex)
Commands\UpdateCommand.cs (1)
234catch (ProjectLocatorException ex)
Aspire.Cli.Tests (10)
Projects\ProjectLocatorTests.cs (10)
42var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => { 241var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>{ 524var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 569var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => 736var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>