3 instantiations of ProjectLocatorException
aspire (3)
Projects\ProjectLocator.cs (3)
96throw new ProjectLocatorException($"AppHost file was specified in '{settingsFile.FullName}' but it does not exist."); 122throw new ProjectLocatorException($"Project file does not exist."); 146throw new ProjectLocatorException("No project file found.");
10 references to ProjectLocatorException
aspire (10)
Commands\AddCommand.cs (3)
158catch (ProjectLocatorException ex) when (ex.Message == "Project file does not exist.") 163catch (ProjectLocatorException ex) when (ex.Message.Contains("Multiple project files found.")) 168catch (ProjectLocatorException ex) when (ex.Message.Contains("No project file"))
Commands\PublishCommand.cs (4)
178catch (ProjectLocatorException ex) when (ex.Message == "Project file is not an Aspire app host project.") 183catch (ProjectLocatorException ex) when (ex.Message == "Project file does not exist.") 188catch (ProjectLocatorException ex) when (ex.Message.Contains("Multiple project files found.")) 193catch (ProjectLocatorException ex) when (ex.Message.Contains("No project file"))
Commands\RunCommand.cs (3)
296catch (ProjectLocatorException ex) when (ex.Message == "Project file does not exist.") 301catch (ProjectLocatorException ex) when (ex.Message.Contains("Multiple project files")) 306catch (ProjectLocatorException ex) when (ex.Message.Contains("No project file"))