11 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 (9)
Dcp\DcpExecutorTests.cs (7)
4434projectBuilder.WithDebugSupport(_ => new ProjectLaunchConfiguration 5999mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 7486return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 8020.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 8050.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 8857.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 8900.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
49 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 (14)
DotnetProjectBuildCoordinatorTests.cs (10)
930var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 1135var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 1193var refreshedLaunchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 1508var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>( 1624var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(
DotnetProjectResourceTests.cs (4)
584var launchConfig = Assert.IsType<ProjectLaunchConfiguration>( 623var launchConfig = Assert.IsType<ProjectLaunchConfiguration>(
Aspire.Hosting.Tests (28)
Dcp\DcpExecutorTests.cs (22)
4382Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4416Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4458Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4494Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4530Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4566Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4597Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4628Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4658Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4687Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 4812Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 5749Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 5753Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out _)); 6216Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7256Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7431Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7465Assert.True(exe.TryGetProjectLaunchConfiguration(out var launchConfiguration)); 7508Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 7903Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7977Assert.True(exe.TryGetProjectLaunchConfiguration(out var plc)); 8125static Task<ProjectLaunchConfiguration> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken) 8919Assert.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));