34 references to ProjectLocatorFailureReason
aspire (17)
Commands\BaseCommand.cs (6)
97
ProjectLocatorFailureReason
.UnsupportedProjects
99
ProjectLocatorFailureReason
.ProjectFileNotAppHostProject
101
ProjectLocatorFailureReason
.ProjectFileDoesntExist
103
ProjectLocatorFailureReason
.MultipleProjectFilesFound
105
ProjectLocatorFailureReason
.NoProjectFileFound
107
ProjectLocatorFailureReason
.AppHostsMayNotBeBuildable
Projects\ProjectLocator.cs (11)
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),
496
internal class ProjectLocatorException(string message,
ProjectLocatorFailureReason
failureReason) : System.Exception(message)
498
public
ProjectLocatorFailureReason
FailureReason { get; } = failureReason;
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);