11 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
587
launchConfigurations.Add(JsonSerializer.SerializeToElement(new
ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
29
var projectLaunchConfiguration = new
ProjectLaunchConfiguration
Aspire.Hosting.Tests (9)
Dcp\DcpExecutorTests.cs (7)
4434
projectBuilder.WithDebugSupport(_ => new
ProjectLaunchConfiguration
5999
mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode },
7486
return 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)
104
static _ => 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.
14
public static
ProjectLaunchConfiguration
Create(IResource resource, string mode)
26
public static
ProjectLaunchConfiguration
Create(IResource resource, IProjectMetadata projectMetadata, string mode)
29
var
projectLaunchConfiguration = new ProjectLaunchConfiguration
Dcp\Model\Executable.cs (2)
307
public bool TryGetProjectLaunchConfiguration([NotNullWhen(true)] out
ProjectLaunchConfiguration
? launchConfiguration)
310
if (this.TryGetAnnotationAsObjectList(LaunchConfigurationsAnnotation, out List<
ProjectLaunchConfiguration
>? launchConfigurations))
Aspire.Hosting.Dotnet.Tests (14)
DotnetProjectBuildCoordinatorTests.cs (10)
930
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
1135
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
1193
var
refreshedLaunchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
1508
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
1624
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
DotnetProjectResourceTests.cs (4)
584
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
623
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
Aspire.Hosting.Tests (28)
Dcp\DcpExecutorTests.cs (22)
4382
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4416
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4458
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4494
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4530
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4566
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4597
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4628
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4658
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4687
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4812
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
5749
Assert.False(debuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
5753
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
6216
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7256
Assert.True(customExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7431
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7465
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
7508
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
7903
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7977
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
8125
static Task<
ProjectLaunchConfiguration
> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken)
8919
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
DebugSupportExtensionsTests.cs (6)
104
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
125
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
156
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));