16 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
604
launchConfigurations.Add(JsonSerializer.SerializeToElement(new
ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
29
var projectLaunchConfiguration = new
ProjectLaunchConfiguration
Aspire.Hosting.Tests (14)
Dcp\DcpExecutorTests.cs (9)
5787
projectBuilder.WithDebugSupport(_ => new
ProjectLaunchConfiguration
7431
mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode },
9194
mode => new
ProjectLaunchConfiguration
{ ProjectPath = projectPath, Mode = mode },
9240
mode => new
ProjectLaunchConfiguration
{ ProjectPath = projectPath, Mode = mode },
9289
return new
ProjectLaunchConfiguration
{ ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" };
9902
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
9932
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project")
10739
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode }, "project");
10782
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
Dcp\ExecutableLaunchPlanTests.cs (1)
278
static _ => Task.FromResult(new
ProjectLaunchConfiguration
{ ProjectPath = "/tmp/app.csproj" })));
Dcp\ResourceSnapshotBuilderTests.cs (3)
139
new
ProjectLaunchConfiguration
190
? new
ProjectLaunchConfiguration
246
new
ProjectLaunchConfiguration
DebugSupportExtensionsTests.cs (1)
156
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
73 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)
311
resource.TryGetProjectLaunchConfiguration(out
var
launchConfiguration) &&
Aspire.Hosting.Dotnet.Tests (26)
DotnetProjectBuildCoordinatorTests.cs (14)
337
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
1575
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2552
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2762
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2820
var
refreshedLaunchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
3142
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
3263
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)
629
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
654
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
693
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
Aspire.Hosting.Tests (39)
Dcp\DcpExecutorTests.cs (31)
5735
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5769
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5811
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5847
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5883
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5919
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5950
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5981
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
6011
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
6040
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
6165
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
7181
Assert.False(debuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
7185
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
7648
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7700
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7701
var
launchConfig = Assert.Single(launchConfigs);
7764
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7765
var
launchConfig = Assert.Single(launchConfigs);
7783
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7784
var
launchConfig = Assert.Single(launchConfigs);
7805
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7806
var
launchConfig = Assert.Single(launchConfigs);
8960
Assert.True(customExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
9135
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
9222
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
9268
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
9311
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
9785
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
9859
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
10007
static Task<
ProjectLaunchConfiguration
> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken)
10801
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
DebugSupportExtensionsTests.cs (6)
105
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
128
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
163
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));
DistributedApplicationBuilderTests.cs (2)
227
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(