14 implementations of IProjectLocator
aspire (1)
Projects\ProjectLocator.cs (1)
29AspireCliTelemetry telemetry) : IProjectLocator
Aspire.Cli.Tests (13)
Commands\ExecCommandTests.cs (3)
169private sealed class NoProjectFileProjectLocator : Aspire.Cli.Projects.IProjectLocator 182private sealed class MultipleProjectFilesProjectLocator : Aspire.Cli.Projects.IProjectLocator 195private sealed class ProjectFileDoesNotExistLocator : Aspire.Cli.Projects.IProjectLocator
Commands\ExtensionInternalCommandTests.cs (4)
195private sealed class SingleProjectFileProjectLocator : IProjectLocator 248private sealed class MultipleProjectsProjectLocator : IProjectLocator 301private sealed class NoProjectFileProjectLocator : IProjectLocator 346private sealed class ThrowingProjectLocator : IProjectLocator
Commands\RunCommandTests.cs (4)
90private sealed class ProjectFileDoesNotExistLocator : Aspire.Cli.Projects.IProjectLocator 143private sealed class NoProjectFileProjectLocator : IProjectLocator 156private sealed class MultipleProjectFilesProjectLocator : IProjectLocator 1176private sealed class SingleFileAppHostProjectLocator : Aspire.Cli.Projects.IProjectLocator
TestServices\NoProjectFileProjectLocator.cs (1)
8internal sealed class NoProjectFileProjectLocator : IProjectLocator
TestServices\TestProjectLocator.cs (1)
9internal sealed class TestProjectLocator : IProjectLocator
19 references to IProjectLocator
aspire (17)
Commands\AddCommand.cs (2)
22private readonly IProjectLocator _projectLocator; 47public AddCommand(IPackagingService packagingService, IInteractionService interactionService, IProjectLocator projectLocator, IAddCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory)
Commands\DeployCommand.cs (1)
21public DeployCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger<DeployCommand> logger, IAnsiConsole ansiConsole)
Commands\DoCommand.cs (1)
21public DoCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger<DoCommand> logger, IAnsiConsole ansiConsole)
Commands\ExecCommand.cs (2)
24private readonly IProjectLocator _projectLocator; 55IProjectLocator projectLocator,
Commands\ExtensionInternalCommand.cs (3)
18public ExtensionInternalCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService, AspireCliTelemetry telemetry) : base("extension", "Hidden command for extension integration", features, updateNotifier, executionContext, interactionService, telemetry) 31private readonly IProjectLocator _projectLocator; 33public GetAppHostCandidatesCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService, AspireCliTelemetry telemetry) : base("get-apphosts", "Get AppHosts in the specified directory", features, updateNotifier, executionContext, interactionService, telemetry)
Commands\PipelineCommandBase.cs (2)
27protected readonly IProjectLocator _projectLocator; 70protected PipelineCommandBase(string name, string description, IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger logger, IAnsiConsole ansiConsole)
Commands\PublishCommand.cs (1)
39public PublishCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, IPublishCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger<PublishCommand> logger, IAnsiConsole ansiConsole)
Commands\RunCommand.cs (2)
58private readonly IProjectLocator _projectLocator; 92IProjectLocator projectLocator,
Commands\UpdateCommand.cs (2)
25private readonly IProjectLocator _projectLocator; 46IProjectLocator projectLocator,
Program.cs (1)
157builder.Services.AddSingleton<IProjectLocator, ProjectLocator>();
Aspire.Cli.Tests (2)
Utils\CliTestHelper.cs (2)
285public Func<IServiceProvider, IProjectLocator> ProjectLocatorFactory { get; set; } 291public IProjectLocator CreateDefaultProjectLocatorFactory(IServiceProvider serviceProvider)