10 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
586launchConfigurations.Add(JsonSerializer.SerializeToElement(new ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
27var projectLaunchConfiguration = new ProjectLaunchConfiguration
Aspire.Hosting.Tests (8)
Dcp\DcpExecutorTests.cs (7)
4244projectBuilder.WithDebugSupport(_ => new ProjectLaunchConfiguration 5809mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 7296return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 7830.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 7860.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 8667.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 8710.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
DebugSupportExtensionsTests.cs (1)
145.WithDebugSupport(mode => new ProjectLaunchConfiguration
38 references to ProjectLaunchConfiguration
Aspire.Hosting (6)
ApplicationModel\ProjectLaunchConfigurationFactory.cs (4)
9/// Builds the <see cref="ProjectLaunchConfiguration"/> that Aspire hands to the IDE for a .NET resource. 13public static ProjectLaunchConfiguration Create(IResource resource, string mode) 25public static ProjectLaunchConfiguration Create(IResource resource, IProjectMetadata projectMetadata, string mode) 27var projectLaunchConfiguration = new ProjectLaunchConfiguration
Dcp\Model\Executable.cs (2)
307public bool TryGetProjectLaunchConfiguration([NotNullWhen(true)] out ProjectLaunchConfiguration? launchConfiguration) 310if (this.TryGetAnnotationAsObjectList(LaunchConfigurationsAnnotation, out List<ProjectLaunchConfiguration>? launchConfigurations))
Aspire.Hosting.Dotnet.Tests (4)
DotnetProjectResourceTests.cs (4)
549var launchConfig = Assert.IsType<ProjectLaunchConfiguration>( 584var launchConfig = Assert.IsType<ProjectLaunchConfiguration>(
Aspire.Hosting.Tests (28)
Dcp\DcpExecutorTests.cs (22)
4192Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4226Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4268Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4304Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4340Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4376Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4407Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4438Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4468Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4497Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4622Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 5559Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 5563Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6026Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7066Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7241Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7275Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 7318Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 7713Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7787Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 7935static Task<ProjectLaunchConfiguration> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken) 8729Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc));
DebugSupportExtensionsTests.cs (6)
104var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 121var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 152var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));