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)
5047projectBuilder.WithDebugSupport(_ => new ProjectLaunchConfiguration 6612mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 8062mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8108mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8157return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 8691.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 8721.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 9528.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 9571.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)
150.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)
4995Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5029Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5071Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5107Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5143Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5179Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5210Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5241Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5271Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5300Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 5425Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6362Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6366Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6829Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7869Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8044Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8090Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 8136Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 8179Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 8574Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 8648Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 8796static Task<ProjectLaunchConfiguration> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken) 9590Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc));
DebugSupportExtensionsTests.cs (6)
105var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 126var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug)); 157var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));