9 instantiations of ProjectLocatorException
aspire (2)
Projects\ProjectLocator.cs (2)
131
throw new
ProjectLocatorException
(ErrorStrings.ProjectFileDoesntExist);
155
throw new
ProjectLocatorException
(ErrorStrings.NoProjectFileFound);
Aspire.Cli.Tests (7)
Commands\ExecCommandTests.cs (3)
171
throw new Aspire.Cli.Projects.
ProjectLocatorException
("No project file found.");
179
throw new Aspire.Cli.Projects.
ProjectLocatorException
("Multiple project files found.");
187
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.");
TestServices\NoProjectFileProjectLocator.cs (1)
12
throw new
ProjectLocatorException
("No project file found.");
17 references to ProjectLocatorException
aspire (13)
Commands\AddCommand.cs (3)
173
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
178
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
183
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\ExecCommand.cs (3)
266
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
271
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
276
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\PublishCommandBase.cs (4)
203
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileNotAppHostProject, StringComparisons.CliInputOrOutput))
208
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
213
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
218
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Commands\RunCommand.cs (3)
287
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
292
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
297
catch (
ProjectLocatorException
ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Aspire.Cli.Tests (4)
Projects\ProjectLocatorTests.cs (4)
33
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () => {
223
var
ex = await Assert.ThrowsAsync<
ProjectLocatorException
>(async () =>{