13 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
587launchConfigurations.Add(JsonSerializer.SerializeToElement(new ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
29var projectLaunchConfiguration = new ProjectLaunchConfiguration
Aspire.Hosting.Tests (11)
Dcp\DcpExecutorTests.cs (9)
5046projectBuilder.WithDebugSupport(_ => new ProjectLaunchConfiguration 6611mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 8061mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8107mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8156return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 8690.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 8720.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 9527.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 9570.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
Dcp\ExecutableLaunchPlanTests.cs (1)
104static _ => Task.FromResult(new ProjectLaunchConfiguration { ProjectPath = "/tmp/app.csproj" })));
DebugSupportExtensionsTests.cs (1)
149.WithDebugSupport(mode => new ProjectLaunchConfiguration
52 references to ProjectLaunchConfiguration
Aspire.Hosting (7)
ApplicationModel\ExecutableLaunchConfiguration.cs (1)
55/// 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)
307public bool TryGetProjectLaunchConfiguration([NotNullWhen(true)] out ProjectLaunchConfiguration? launchConfiguration) 310if (this.TryGetAnnotationAsObjectList(LaunchConfigurationsAnnotation, out List<ProjectLaunchConfiguration>? launchConfigurations))
Aspire.Hosting.Dotnet.Tests (16)
DotnetProjectBuildCoordinatorTests.cs (10)
1461var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 1666var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 1724var refreshedLaunchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2039var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 2155var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(
DotnetProjectOptionsTests.cs (2)
35var launchConfig = Assert.IsType<ProjectLaunchConfiguration>(
DotnetProjectResourceTests.cs (4)
648var launchConfig = Assert.IsType<ProjectLaunchConfiguration>( 687var launchConfig = Assert.IsType<ProjectLaunchConfiguration>(
Aspire.Hosting.Tests (29)
Dcp\DcpExecutorTests.cs (23)
4994Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5028Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5070Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5106Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5142Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5178Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5209Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5240Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5270Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5299Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5424Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6361Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6365Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6828Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7868Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8043Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8089Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 8135Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 8178Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 8573Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8647Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 8795static Task<ProjectLaunchConfiguration> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken) 9589Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc));
DebugSupportExtensionsTests.cs (6)
104var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 125var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 156var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));