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