15 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
592launchConfigurations.Add(JsonSerializer.SerializeToElement(new ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
29var projectLaunchConfiguration = new ProjectLaunchConfiguration
Aspire.Hosting.Tests (13)
Dcp\DcpExecutorTests.cs (9)
5652projectBuilder.WithDebugSupport(_ => new ProjectLaunchConfiguration 7296mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 8746mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8792mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8841return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 9375.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 9405.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 10212.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 10255.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
Dcp\ExecutableLaunchPlanTests.cs (1)
104static _ => Task.FromResult(new ProjectLaunchConfiguration { ProjectPath = "/tmp/app.csproj" })));
Dcp\ResourceSnapshotBuilderTests.cs (2)
131new ProjectLaunchConfiguration 183new ProjectLaunchConfiguration
DebugSupportExtensionsTests.cs (1)
157.WithDebugSupport(mode => new ProjectLaunchConfiguration
63 references to ProjectLaunchConfiguration
Aspire.Hosting (8)
ApplicationModel\ExecutableLaunchConfiguration.cs (1)
56/// suppression values carried by <see cref="ProjectLaunchConfiguration"/>.
ApplicationModel\ProjectLaunchConfigurationFactory.cs (4)
10/// Builds the <see cref="ProjectLaunchConfiguration"/> that Aspire hands to the IDE for a .NET resource. 14public static ProjectLaunchConfiguration Create(IResource resource, string mode) 26public static ProjectLaunchConfiguration Create(IResource resource, IProjectMetadata projectMetadata, string mode) 29var projectLaunchConfiguration = new ProjectLaunchConfiguration
Dcp\Model\Executable.cs (2)
308public bool TryGetProjectLaunchConfiguration([NotNullWhen(true)] out ProjectLaunchConfiguration? launchConfiguration) 311if (this.TryGetAnnotationAsObjectList(LaunchConfigurationsAnnotation, out List<ProjectLaunchConfiguration>? launchConfigurations))
Dcp\ResourceSnapshotBuilder.cs (1)
307resource.TryGetProjectLaunchConfiguration(out var launchConfiguration) &&
Aspire.Hosting.Dotnet.Tests (24)
DotnetProjectBuildCoordinatorTests.cs (12)
329var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2443var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2653var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2711var refreshedLaunchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 3033var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 3154var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(
DotnetProjectLaunchProfileTests.cs (4)
40var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 88var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(
DotnetProjectOptionsTests.cs (2)
35var launchConfig = Assert.IsType<ProjectLaunchConfiguration>(
DotnetProjectResourceTests.cs (6)
630var launchConfig = Assert.IsType<ProjectLaunchConfiguration>( 655var launchConfig = Assert.IsType<ProjectLaunchConfiguration>( 694var launchConfig = Assert.IsType<ProjectLaunchConfiguration>(
Aspire.Hosting.Tests (31)
Dcp\DcpExecutorTests.cs (23)
5600Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5634Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5676Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5712Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5748Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5784Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5815Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5846Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5876Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5905Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 6030Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 7046Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 7050Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 7513Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8553Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8728Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8774Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 8820Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 8863Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 9258Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 9332Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 9480static Task<ProjectLaunchConfiguration> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken) 10274Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc));
DebugSupportExtensionsTests.cs (6)
106var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 129var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 164var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));
DistributedApplicationBuilderTests.cs (2)
227var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(