18 instantiations of ProjectLocatorException
aspire (6)
Projects\ProjectLocator.cs (6)
223
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
238
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
243
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
255
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
276
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
280
throw new
ProjectLocatorException
(ErrorStrings.AppHostsMayNotBeBuildable);
Aspire.Cli.Tests (12)
Commands\ExecCommandTests.cs (5)
171
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
176
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
184
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
201
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
206
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
Commands\RunCommandTests.cs (5)
90
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
95
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
143
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
148
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
156
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
TestServices\NoProjectFileProjectLocator.cs (2)
12
throw new
ProjectLocatorException
("No project file found.");
17
throw new
ProjectLocatorException
("No project file found.");
17 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)
269
catch (
ProjectLocatorException
ex)
Commands\PublishCommandBase.cs (1)
197
catch (
ProjectLocatorException
ex)
Commands\RunCommand.cs (1)
294
catch (
ProjectLocatorException
ex)
Commands\UpdateCommand.cs (1)
49
catch (
ProjectLocatorException
ex)
Aspire.Cli.Tests (11)
Projects\ProjectLocatorTests.cs (11)
43
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () => {
239
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>{
553
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
587
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
610
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
784
await Assert.ThrowsAsync<
ProjectLocatorException
>(() =>