18 references to ProjectFileDoesntExist
aspire (7)
Commands\RestoreCommand.cs (1)
82catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.NoProjectFileFound or ProjectLocatorFailureReason.ProjectFileDoesntExist)
Projects\ProjectLocator.cs (5)
960throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist); 1017throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist); 1067throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist); 1415ProjectLocatorFailureReason.ProjectFileDoesntExist or ProjectLocatorFailureReason.NoProjectFileFound when projectOptionSpecifiedAsDirectory 1421ProjectLocatorFailureReason.ProjectFileDoesntExist
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
226catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.NoProjectFileFound or ProjectLocatorFailureReason.ProjectFileDoesntExist)
Aspire.Cli.Tests (11)
Backchannel\AppHostConnectionResolverTests.cs (2)
33throw new ProjectLocatorException("should not be invoked", ProjectLocatorFailureReason.ProjectFileDoesntExist); 188throw new ProjectLocatorException("missing", ProjectLocatorFailureReason.ProjectFileDoesntExist)
Commands\RunCommandTests.cs (4)
1247throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist); 1252throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist); 1257throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist); 1262throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.ProjectFileDoesntExist);
Commands\StopCommandTests.cs (1)
67throw new ProjectLocatorException("Project file does not exist.", ProjectLocatorFailureReason.ProjectFileDoesntExist)
Projects\ProjectLocatorTests.cs (4)
679Assert.Equal(ProjectLocatorFailureReason.ProjectFileDoesntExist, ex.FailureReason); 711Assert.Equal(ProjectLocatorFailureReason.ProjectFileDoesntExist, ex.FailureReason); 2412Assert.Equal(ProjectLocatorFailureReason.ProjectFileDoesntExist, ex.FailureReason); 2540Assert.Equal(ProjectLocatorFailureReason.ProjectFileDoesntExist, ex.FailureReason);