8 instantiations of ProjectLocatorException
aspire (2)
Projects\ProjectLocator.cs (2)
130throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 154throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound);
Aspire.Cli.Tests (6)
Commands\ExecCommandTests.cs (3)
116throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found."); 124throw new Aspire.Cli.Projects.ProjectLocatorException("Multiple project files found."); 132throw 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.");
17 references to ProjectLocatorException
aspire (13)
Commands\AddCommand.cs (3)
163catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 168catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 173catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\ExecCommand.cs (3)
241catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 246catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 251catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\PublishCommandBase.cs (4)
192catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileNotAppHostProject, StringComparisons.CliInputOrOutput)) 197catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 202catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 207catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\RunCommand.cs (3)
253catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 258catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 263catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Aspire.Cli.Tests (4)
Projects\ProjectLocatorTests.cs (4)
35var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () => { 226var ex = await Assert.ThrowsAsync<ProjectLocatorException>(async () =>{