24 instantiations of ProjectLocatorException
aspire (7)
Projects\ProjectLocator.cs (7)
187
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
214
throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound);
225
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
244
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
265
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
269
throw new
ProjectLocatorException
(ErrorStrings.AppHostsMayNotBeBuildable);
279
MultipleAppHostProjectsFoundBehavior.Throw => throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound),
Aspire.Cli.Tests (17)
Commands\ExecCommandTests.cs (6)
173
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
178
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
186
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
191
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
199
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
204
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
Commands\ExtensionInternalCommandTests.cs (2)
309
throw new
ProjectLocatorException
("No AppHost project found.");
317
throw new
ProjectLocatorException
("No AppHost project found.");
Commands\RunCommandTests.cs (6)
94
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
99
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
147
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
152
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
160
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
165
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
Commands\UpdateCommandTests.cs (1)
178
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.");
16 references to ProjectLocatorException
aspire (6)
Commands\AddCommand.cs (1)
223
catch (
ProjectLocatorException
ex)
Commands\BaseCommand.cs (1)
60
internal static int HandleProjectLocatorException(
ProjectLocatorException
ex, IInteractionService interactionService, AspireCliTelemetry telemetry)
Commands\ExecCommand.cs (1)
276
catch (
ProjectLocatorException
ex)
Commands\PipelineCommandBase.cs (1)
244
catch (
ProjectLocatorException
ex)
Commands\RunCommand.cs (1)
357
catch (
ProjectLocatorException
ex)
Commands\UpdateCommand.cs (1)
227
catch (
ProjectLocatorException
ex)
Aspire.Cli.Tests (10)
Projects\ProjectLocatorTests.cs (10)
42
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () => {
241
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>{
524
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
569
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
736
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>