16 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
604launchConfigurations.Add(JsonSerializer.SerializeToElement(new ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
29var projectLaunchConfiguration = new ProjectLaunchConfiguration
Aspire.Hosting.Tests (14)
Dcp\DcpExecutorTests.cs (9)
5787projectBuilder.WithDebugSupport(_ => new ProjectLaunchConfiguration 7431mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 9194mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 9240mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 9289return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 9902.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 9932.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 10739.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 10782.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
Dcp\ExecutableLaunchPlanTests.cs (1)
278static _ => Task.FromResult(new ProjectLaunchConfiguration { ProjectPath = "/tmp/app.csproj" })));
Dcp\ResourceSnapshotBuilderTests.cs (3)
139new ProjectLaunchConfiguration 190? new ProjectLaunchConfiguration 246new ProjectLaunchConfiguration
DebugSupportExtensionsTests.cs (1)
156.WithDebugSupport(mode => new ProjectLaunchConfiguration
73 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)
311resource.TryGetProjectLaunchConfiguration(out var launchConfiguration) &&
Aspire.Hosting.Dotnet.Tests (26)
DotnetProjectBuildCoordinatorTests.cs (14)
337var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 1575var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2552var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2762var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2820var refreshedLaunchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 3142var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 3263var 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)
629var launchConfig = Assert.IsType<ProjectLaunchConfiguration>( 654var launchConfig = Assert.IsType<ProjectLaunchConfiguration>( 693var launchConfig = Assert.IsType<ProjectLaunchConfiguration>(
Aspire.Hosting.Tests (39)
Dcp\DcpExecutorTests.cs (31)
5735Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5769Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5811Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5847Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5883Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5919Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5950Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5981Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 6011Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 6040Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 6165Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 7181Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 7185Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 7648Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7700Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7701var launchConfig = Assert.Single(launchConfigs); 7764Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7765var launchConfig = Assert.Single(launchConfigs); 7783Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7784var launchConfig = Assert.Single(launchConfigs); 7805Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7806var launchConfig = Assert.Single(launchConfigs); 8960Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 9135Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 9222Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 9268Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 9311Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 9785Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 9859Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 10007static Task<ProjectLaunchConfiguration> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken) 10801Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc));
DebugSupportExtensionsTests.cs (6)
105var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 128var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 163var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));
DistributedApplicationBuilderTests.cs (2)
227var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(