9 instantiations of ProjectLocatorException
aspire (2)
Projects\ProjectLocator.cs (2)
131throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 155throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound);
Aspire.Cli.Tests (7)
Commands\ExecCommandTests.cs (3)
171throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 179throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 187throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.");
Commands\RunCommandTests.cs (3)
89throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist."); 136throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 144throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found.");
TestServices\NoProjectFileProjectLocator.cs (1)
12throw new ProjectLocatorException("No project file found.");
17 references to ProjectLocatorException
aspire (13)
Commands\AddCommand.cs (3)
173catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 178catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 183catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\ExecCommand.cs (3)
266catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 271catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 276catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\PublishCommandBase.cs (4)
203catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileNotAppHostProject, StringComparisons.CliInputOrOutput)) 208catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 213catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 218catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\RunCommand.cs (3)
287catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 292catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 297catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Aspire.Cli.Tests (4)
Projects\ProjectLocatorTests.cs (4)
33var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => { 223var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>{