25 references to NoProjectFileFound
aspire (8)
Commands\RestoreCommand.cs (1)
82
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.
NoProjectFileFound
or ProjectLocatorFailureReason.ProjectFileDoesntExist)
Commands\UpdateCommand.cs (3)
195
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.
NoProjectFileFound
or ProjectLocatorFailureReason.ProjectFileDoesntExist)
278
catch (ProjectLocatorException ex) when (passedAppHostProjectFile is null && ex.FailureReason == ProjectLocatorFailureReason.
NoProjectFileFound
)
518
if (ex.FailureReason == ProjectLocatorFailureReason.
NoProjectFileFound
)
Projects\ProjectLocator.cs (3)
1118
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
1416
ProjectLocatorFailureReason.ProjectFileDoesntExist or ProjectLocatorFailureReason.
NoProjectFileFound
when projectOptionSpecifiedAsDirectory
1426
ProjectLocatorFailureReason.
NoProjectFileFound
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
226
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.
NoProjectFileFound
or ProjectLocatorFailureReason.ProjectFileDoesntExist)
Aspire.Cli.Tests (17)
Commands\ExtensionInternalCommandTests.cs (4)
362
throw new ProjectLocatorException("No AppHost project found.", ProjectLocatorFailureReason.
NoProjectFileFound
);
367
throw new ProjectLocatorException("No AppHost project found.", ProjectLocatorFailureReason.
NoProjectFileFound
);
376
throw new ProjectLocatorException("No AppHost project found.", ProjectLocatorFailureReason.
NoProjectFileFound
);
384
throw new ProjectLocatorException("No AppHost project found.", ProjectLocatorFailureReason.
NoProjectFileFound
);
Commands\RunCommandTests.cs (4)
2537
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
2542
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
2547
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
2552
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
Commands\UpdateCommandRepositoryToolsTests.cs (1)
46
: throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
)
Commands\UpdateCommandTests.cs (3)
266
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
1384
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
1474
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
Projects\ProjectLocatorTests.cs (1)
977
var exception = new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
TestServices\NoProjectFileProjectLocator.cs (4)
12
throw new ProjectLocatorException("No project file found.", ProjectLocatorFailureReason.
NoProjectFileFound
);
17
throw new ProjectLocatorException("No project file found.", ProjectLocatorFailureReason.
NoProjectFileFound
);
22
throw new ProjectLocatorException("No project file found.", ProjectLocatorFailureReason.
NoProjectFileFound
);
27
throw new ProjectLocatorException("No project file found.", ProjectLocatorFailureReason.
NoProjectFileFound
);