15 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
592
launchConfigurations.Add(JsonSerializer.SerializeToElement(new
ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
29
var projectLaunchConfiguration = new
ProjectLaunchConfiguration
Aspire.Hosting.Tests (13)
Dcp\DcpExecutorTests.cs (9)
5652
projectBuilder.WithDebugSupport(_ => new
ProjectLaunchConfiguration
7296
mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode },
8746
mode => new
ProjectLaunchConfiguration
{ ProjectPath = projectPath, Mode = mode },
8792
mode => new
ProjectLaunchConfiguration
{ ProjectPath = projectPath, Mode = mode },
8841
return new
ProjectLaunchConfiguration
{ ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" };
9375
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
9405
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project")
10212
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode }, "project");
10255
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
Dcp\ExecutableLaunchPlanTests.cs (1)
104
static _ => Task.FromResult(new
ProjectLaunchConfiguration
{ ProjectPath = "/tmp/app.csproj" })));
Dcp\ResourceSnapshotBuilderTests.cs (2)
131
new
ProjectLaunchConfiguration
183
new
ProjectLaunchConfiguration
DebugSupportExtensionsTests.cs (1)
157
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
63 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.
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)
308
public bool TryGetProjectLaunchConfiguration([NotNullWhen(true)] out
ProjectLaunchConfiguration
? launchConfiguration)
311
if (this.TryGetAnnotationAsObjectList(LaunchConfigurationsAnnotation, out List<
ProjectLaunchConfiguration
>? launchConfigurations))
Dcp\ResourceSnapshotBuilder.cs (1)
307
resource.TryGetProjectLaunchConfiguration(out
var
launchConfiguration) &&
Aspire.Hosting.Dotnet.Tests (24)
DotnetProjectBuildCoordinatorTests.cs (12)
329
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2443
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2653
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2711
var
refreshedLaunchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
3033
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
3154
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
DotnetProjectLaunchProfileTests.cs (4)
40
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
88
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
DotnetProjectOptionsTests.cs (2)
35
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
DotnetProjectResourceTests.cs (6)
630
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
655
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
694
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
Aspire.Hosting.Tests (31)
Dcp\DcpExecutorTests.cs (23)
5600
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5634
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5676
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5712
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5748
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5784
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5815
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5846
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5876
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5905
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
6030
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
7046
Assert.False(debuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
7050
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
7513
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
8553
Assert.True(customExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
8728
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
8774
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
8820
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
8863
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
9258
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
9332
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
9480
static Task<
ProjectLaunchConfiguration
> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken)
10274
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
DebugSupportExtensionsTests.cs (6)
106
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
129
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
164
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));
DistributedApplicationBuilderTests.cs (2)
227
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(