26 instantiations of ProjectLocatorException
aspire (9)
Projects\ProjectLocator.cs (9)
276
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.UnsupportedProjects);
280
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist);
307
throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound, ProjectLocatorFailureReason.MultipleProjectFilesFound);
318
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist);
342
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist);
369
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.UnsupportedProjects);
372
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.NoProjectFileFound);
376
throw new
ProjectLocatorException
(ErrorStrings.AppHostsMayNotBeBuildable, ProjectLocatorFailureReason.AppHostsMayNotBeBuildable);
386
MultipleAppHostProjectsFoundBehavior.Throw => throw new
ProjectLocatorException
(ErrorStrings.MultipleProjectFilesFound, ProjectLocatorFailureReason.MultipleProjectFilesFound),
Aspire.Cli.Tests (17)
Commands\ExecCommandTests.cs (6)
173
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.NoProjectFileFound);
178
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.NoProjectFileFound);
188
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.MultipleProjectFilesFound);
193
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.MultipleProjectFilesFound);
203
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist);
208
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist);
Commands\ExtensionInternalCommandTests.cs (2)
310
throw new
ProjectLocatorException
("No AppHost project found.", ProjectLocatorFailureReason.NoProjectFileFound);
318
throw new
ProjectLocatorException
("No AppHost project found.", ProjectLocatorFailureReason.NoProjectFileFound);
Commands\RunCommandTests.cs (6)
169
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist);
174
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist);
224
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.NoProjectFileFound);
229
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.NoProjectFileFound);
239
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.MultipleProjectFilesFound);
244
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.MultipleProjectFilesFound);
Commands\UpdateCommandTests.cs (1)
180
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.NoProjectFileFound);
TestServices\NoProjectFileProjectLocator.cs (2)
12
throw new
ProjectLocatorException
("No project file found.", ProjectLocatorFailureReason.NoProjectFileFound);
17
throw new
ProjectLocatorException
("No project file found.", ProjectLocatorFailureReason.NoProjectFileFound);
17 references to ProjectLocatorException
aspire (7)
Commands\AddCommand.cs (1)
255
catch (
ProjectLocatorException
ex)
Commands\BaseCommand.cs (1)
90
internal static int HandleProjectLocatorException(
ProjectLocatorException
ex, IInteractionService interactionService, AspireCliTelemetry telemetry)
Commands\ExecCommand.cs (1)
266
catch (
ProjectLocatorException
ex)
Commands\PipelineCommandBase.cs (1)
303
catch (
ProjectLocatorException
ex)
Commands\RestoreCommand.cs (1)
140
catch (
ProjectLocatorException
ex)
Commands\RunCommand.cs (1)
372
catch (
ProjectLocatorException
ex)
Commands\UpdateCommand.cs (1)
237
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 () =>{
574
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
619
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>
782
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>