3 instantiations of ProjectLocatorException
aspire (3)
Projects\ProjectLocator.cs (3)
25
throw new
ProjectLocatorException
($"Project file does not exist.");
38
{ Length: 0 } => throw new
ProjectLocatorException
("No project file found."),
39
{ Length: > 1 } => throw new
ProjectLocatorException
("Multiple project files found."),
9 references to ProjectLocatorException
aspire (9)
Commands\AddCommand.cs (3)
143
catch (
ProjectLocatorException
ex) when (ex.Message == "Project file does not exist.")
148
catch (
ProjectLocatorException
ex) when (ex.Message.Contains("Nultiple project files"))
153
catch (
ProjectLocatorException
ex) when (ex.Message.Contains("No project file"))
Commands\PublishCommand.cs (3)
271
catch (
ProjectLocatorException
ex) when (ex.Message == "Project file does not exist.")
276
catch (
ProjectLocatorException
ex) when (ex.Message.Contains("Nultiple project files"))
281
catch (
ProjectLocatorException
ex) when (ex.Message.Contains("No project file"))
Commands\RunCommand.cs (3)
219
catch (
ProjectLocatorException
ex) when (ex.Message == "Project file does not exist.")
224
catch (
ProjectLocatorException
ex) when (ex.Message.Contains("Multiple project files"))
229
catch (
ProjectLocatorException
ex) when (ex.Message.Contains("No project file"))