18 references to ProjectFileDoesntExist
aspire (7)
Commands\RestoreCommand.cs (1)
82
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.NoProjectFileFound or ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Projects\ProjectLocator.cs (5)
954
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1012
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1062
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1432
ProjectLocatorFailureReason.
ProjectFileDoesntExist
or ProjectLocatorFailureReason.NoProjectFileFound when projectOptionSpecifiedAsDirectory
1438
ProjectLocatorFailureReason.
ProjectFileDoesntExist
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
226
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.NoProjectFileFound or ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Aspire.Cli.Tests (11)
Backchannel\AppHostConnectionResolverTests.cs (2)
33
throw new ProjectLocatorException("should not be invoked", ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
185
throw new ProjectLocatorException("missing", ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Commands\RunCommandTests.cs (4)
1664
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1669
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1674
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1679
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
Commands\StopCommandTests.cs (1)
67
throw new ProjectLocatorException("Project file does not exist.", ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Projects\ProjectLocatorTests.cs (4)
706
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
738
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
2474
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
2602
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);