21 references to NoProjectFileFound
aspire (5)
Commands\RestoreCommand.cs (1)
82
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.
NoProjectFileFound
or ProjectLocatorFailureReason.ProjectFileDoesntExist)
Projects\ProjectLocator.cs (3)
1115
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
1415
ProjectLocatorFailureReason.ProjectFileDoesntExist or ProjectLocatorFailureReason.
NoProjectFileFound
when projectOptionSpecifiedAsDirectory
1425
ProjectLocatorFailureReason.
NoProjectFileFound
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
226
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.
NoProjectFileFound
or ProjectLocatorFailureReason.ProjectFileDoesntExist)
Aspire.Cli.Tests (16)
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)
1927
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
1932
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
1937
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
1942
throw new Aspire.Cli.Projects.ProjectLocatorException("No project file found.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
NoProjectFileFound
);
Commands\UpdateCommandTests.cs (3)
262
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
1327
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
1417
throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound, ProjectLocatorFailureReason.
NoProjectFileFound
);
Projects\ProjectLocatorTests.cs (1)
949
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
);