9 implementations of IProjectLocator
aspire (1)
Projects\ProjectLocator.cs (1)
22internal sealed class ProjectLocator(ILogger<ProjectLocator> logger, IDotNetCliRunner runner, CliExecutionContext executionContext, IInteractionService interactionService, IConfigurationService configurationService, AspireCliTelemetry telemetry, IFeatures features) : IProjectLocator
Aspire.Cli.Tests (8)
Commands\ExecCommandTests.cs (3)
167private sealed class NoProjectFileProjectLocator : Aspire.Cli.Projects.IProjectLocator 180private sealed class MultipleProjectFilesProjectLocator : Aspire.Cli.Projects.IProjectLocator 197private sealed class ProjectFileDoesNotExistLocator : Aspire.Cli.Projects.IProjectLocator
Commands\RunCommandTests.cs (3)
86private sealed class ProjectFileDoesNotExistLocator : Aspire.Cli.Projects.IProjectLocator 139private sealed class NoProjectFileProjectLocator : IProjectLocator 152private sealed class MultipleProjectFilesProjectLocator : IProjectLocator
TestServices\NoProjectFileProjectLocator.cs (1)
8internal sealed class NoProjectFileProjectLocator : IProjectLocator
TestServices\TestProjectLocator.cs (1)
8internal sealed class TestProjectLocator : IProjectLocator
18 references to IProjectLocator
aspire (16)
Commands\AddCommand.cs (2)
23private readonly IProjectLocator _projectLocator; 28public AddCommand(IDotNetCliRunner runner, IPackagingService packagingService, IInteractionService interactionService, IProjectLocator projectLocator, IAddCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\DeployCommand.cs (1)
16public DeployCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\ExecCommand.cs (2)
24private readonly IProjectLocator _projectLocator; 33IProjectLocator projectLocator,
Commands\ExtensionInternalCommand.cs (3)
16public ExtensionInternalCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService) : base("extension", "Hidden command for extension integration", features, updateNotifier, executionContext, interactionService) 32private readonly IProjectLocator _projectLocator; 34public GetAppHostCandidatesCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService) : base("get-apphosts", "Get AppHosts in the specified directory", features, updateNotifier, executionContext, interactionService)
Commands\PublishCommand.cs (1)
36public PublishCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, IPublishCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\PublishCommandBase.cs (2)
25protected readonly IProjectLocator _projectLocator; 41protected PublishCommandBase(string name, string description, IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\RunCommand.cs (2)
26private readonly IProjectLocator _projectLocator; 37IProjectLocator projectLocator,
Commands\UpdateCommand.cs (2)
17private readonly IProjectLocator _projectLocator; 21public UpdateCommand(IProjectLocator projectLocator, IPackagingService packagingService, IProjectUpdater projectUpdater, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext) : base("update", UpdateCommandStrings.Description, features, updateNotifier, executionContext, interactionService)
Program.cs (1)
112builder.Services.AddSingleton<IProjectLocator, ProjectLocator>();
Aspire.Cli.Tests (2)
Utils\CliTestHelper.cs (2)
191public Func<IServiceProvider, IProjectLocator> ProjectLocatorFactory { get; set; } 194public IProjectLocator CreateDefaultProjectLocatorFactory(IServiceProvider serviceProvider)