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)
960
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1017
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1067
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1415
ProjectLocatorFailureReason.
ProjectFileDoesntExist
or ProjectLocatorFailureReason.NoProjectFileFound when projectOptionSpecifiedAsDirectory
1421
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
);
188
throw new ProjectLocatorException("missing", ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Commands\RunCommandTests.cs (4)
1247
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1252
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1257
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1262
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)
679
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
711
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
2412
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
2540
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);