24 instantiations of ProjectLocatorException
aspire (7)
Projects\ProjectLocator.cs (7)
302
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
325
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
340
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
345
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
357
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
378
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
382
throw new
ProjectLocatorException
(ErrorStrings.AppHostsMayNotBeBuildable);
Aspire.Cli.Tests (17)
Commands\ExecCommandTests.cs (7)
171
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
176
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
181
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
189
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
215
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
220
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
225
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
Commands\RunCommandTests.cs (7)
95
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
100
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
105
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
153
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
158
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
163
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
171
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
TestServices\NoProjectFileProjectLocator.cs (3)
12
throw new
ProjectLocatorException
("No project file found.");
17
throw new
ProjectLocatorException
("No project file found.");
22
throw new
ProjectLocatorException
("No project file found.");
21 references to ProjectLocatorException
aspire (6)
Commands\AddCommand.cs (1)
187
catch (
ProjectLocatorException
ex)
Commands\BaseCommand.cs (1)
56
internal static int HandleProjectLocatorException(
ProjectLocatorException
ex, IInteractionService interactionService)
Commands\ExecCommand.cs (1)
275
catch (
ProjectLocatorException
ex)
Commands\PublishCommandBase.cs (1)
224
catch (
ProjectLocatorException
ex)
Commands\RunCommand.cs (1)
345
catch (
ProjectLocatorException
ex)
Commands\UpdateCommand.cs (1)
65
catch (
ProjectLocatorException
ex)
Aspire.Cli.Tests (15)
Projects\ProjectLocatorTests.cs (15)
44
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () => {
240
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>{
554
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
588
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
611
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
785
await Assert.ThrowsAsync<
ProjectLocatorException
>(() =>
840
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
947
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>