28 instantiations of ProjectLocatorException
aspire (8)
Projects\ProjectLocator.cs (8)
298
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
325
throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound);
336
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
354
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
366
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
388
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
392
throw new
ProjectLocatorException
(ErrorStrings.AppHostsMayNotBeBuildable);
402
MultipleAppHostProjectsFoundBehavior.Throw => throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound),
Aspire.Cli.Tests (20)
Commands\ExecCommandTests.cs (9)
172
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
177
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
182
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
190
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
195
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
200
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
208
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
213
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
218
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
Commands\ExtensionInternalCommandTests.cs (2)
325
throw new
ProjectLocatorException
("No AppHost project found.");
333
throw new
ProjectLocatorException
("No AppHost project found.");
Commands\RunCommandTests.cs (6)
96
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
101
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
154
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
159
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
172
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
177
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.");
16 references to ProjectLocatorException
aspire (6)
Commands\AddCommand.cs (1)
200
catch (
ProjectLocatorException
ex)
Commands\BaseCommand.cs (1)
56
internal static int HandleProjectLocatorException(
ProjectLocatorException
ex, IInteractionService interactionService)
Commands\ExecCommand.cs (1)
281
catch (
ProjectLocatorException
ex)
Commands\PipelineCommandBase.cs (1)
279
catch (
ProjectLocatorException
ex)
Commands\RunCommand.cs (1)
368
catch (
ProjectLocatorException
ex)
Commands\UpdateCommand.cs (1)
218
catch (
ProjectLocatorException
ex)
Aspire.Cli.Tests (10)
Projects\ProjectLocatorTests.cs (10)
45
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () => {
278
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>{
595
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
647
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
816
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>