19 references to ProjectFileDoesntExist
aspire (8)
Commands\RestoreCommand.cs (1)
82
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.NoProjectFileFound or ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Commands\UpdateCommand.cs (1)
195
catch (ProjectLocatorException ex) when (ex.FailureReason is ProjectLocatorFailureReason.NoProjectFileFound or ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Projects\ProjectLocator.cs (5)
962
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1020
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1070
throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist, ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1416
ProjectLocatorFailureReason.
ProjectFileDoesntExist
or ProjectLocatorFailureReason.NoProjectFileFound when projectOptionSpecifiedAsDirectory
1422
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)
77
throw new ProjectLocatorException("should not be invoked", ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
269
throw new ProjectLocatorException("missing", ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Commands\RunCommandTests.cs (4)
1721
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1726
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1731
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
1736
throw new Aspire.Cli.Projects.ProjectLocatorException("Project file does not exist.", Aspire.Cli.Projects.ProjectLocatorFailureReason.
ProjectFileDoesntExist
);
Commands\StopCommandTests.cs (1)
332
throw new ProjectLocatorException("Project file does not exist.", ProjectLocatorFailureReason.
ProjectFileDoesntExist
)
Projects\ProjectLocatorTests.cs (4)
707
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
739
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
2476
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);
2604
Assert.Equal(ProjectLocatorFailureReason.
ProjectFileDoesntExist
, ex.FailureReason);