24 references to ProjectLocatorException
aspire (7)
Projects\ProjectLocator.cs (7)
188
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
215
throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound);
226
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
245
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
266
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
270
throw new
ProjectLocatorException
(ErrorStrings.AppHostsMayNotBeBuildable);
280
MultipleAppHostProjectsFoundBehavior.Throw => throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound),
Aspire.Cli.Tests (17)
Commands\ExecCommandTests.cs (6)
172
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
177
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
185
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
190
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
198
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
203
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
Commands\ExtensionInternalCommandTests.cs (2)
308
throw new
ProjectLocatorException
("No AppHost project found.");
316
throw new
ProjectLocatorException
("No AppHost project found.");
Commands\RunCommandTests.cs (6)
95
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
100
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
148
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
153
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
161
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
166
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
Commands\UpdateCommandTests.cs (1)
177
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
TestServices\NoProjectFileProjectLocator.cs (2)
12
throw new
ProjectLocatorException
("No project file found.");
17
throw new
ProjectLocatorException
("No project file found.");