8 instantiations of ProjectLocatorException
aspire (2)
Projects\ProjectLocator.cs (2)
130
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
154
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
Aspire.Cli.Tests (6)
Commands\ExecCommandTests.cs (3)
116
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
124
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
132
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
Commands\RunCommandTests.cs (3)
89
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Project file does not exist.");
136
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
144
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
17 references to ProjectLocatorException
aspire (13)
Commands\AddCommand.cs (3)
163
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
168
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
173
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\ExecCommand.cs (3)
241
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
246
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
251
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\PublishCommandBase.cs (4)
192
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileNotAppHostProject, StringComparisons.CliInputOrOutput))
197
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
202
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
207
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\RunCommand.cs (3)
253
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
258
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
263
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Aspire.Cli.Tests (4)
Projects\ProjectLocatorTests.cs (4)
35
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () => {
226
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>{