13 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 (11)
Dcp\DcpExecutorTests.cs (9)
5047
projectBuilder.WithDebugSupport(_ => new
ProjectLaunchConfiguration
6612
mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode },
8062
mode => new
ProjectLaunchConfiguration
{ ProjectPath = projectPath, Mode = mode },
8108
mode => new
ProjectLaunchConfiguration
{ ProjectPath = projectPath, Mode = mode },
8157
return 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)
104
static _ => 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.
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 (16)
DotnetProjectBuildCoordinatorTests.cs (10)
1461
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
1666
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
1724
var
refreshedLaunchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2039
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
2155
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(
DotnetProjectOptionsTests.cs (2)
35
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
DotnetProjectResourceTests.cs (4)
648
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
687
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
Aspire.Hosting.Tests (29)
Dcp\DcpExecutorTests.cs (23)
4995
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5029
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5071
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5107
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5143
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5179
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5210
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5241
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5271
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5300
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
5425
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
6362
Assert.False(debuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
6366
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
6829
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7869
Assert.True(customExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
8044
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
8090
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
8136
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
8179
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
8574
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
8648
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
8796
static Task<
ProjectLaunchConfiguration
> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken)
9590
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
DebugSupportExtensionsTests.cs (6)
105
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
126
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
157
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));