10 instantiations of ProjectLaunchConfiguration
Aspire.Hosting (2)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
586
launchConfigurations.Add(JsonSerializer.SerializeToElement(new
ProjectLaunchConfiguration
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
27
var projectLaunchConfiguration = new
ProjectLaunchConfiguration
Aspire.Hosting.Tests (8)
Dcp\DcpExecutorTests.cs (7)
4244
projectBuilder.WithDebugSupport(_ => new
ProjectLaunchConfiguration
5809
mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode },
7296
return new
ProjectLaunchConfiguration
{ ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" };
7830
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
7860
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project")
8667
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "/test/path", Mode = mode }, "project");
8710
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
{ ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project");
DebugSupportExtensionsTests.cs (1)
145
.WithDebugSupport(mode => new
ProjectLaunchConfiguration
38 references to ProjectLaunchConfiguration
Aspire.Hosting (6)
ApplicationModel\ProjectLaunchConfigurationFactory.cs (4)
9
/// Builds the <see cref="
ProjectLaunchConfiguration
"/> that Aspire hands to the IDE for a .NET resource.
13
public static
ProjectLaunchConfiguration
Create(IResource resource, string mode)
25
public static
ProjectLaunchConfiguration
Create(IResource resource, IProjectMetadata projectMetadata, string mode)
27
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 (4)
DotnetProjectResourceTests.cs (4)
549
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
584
var
launchConfig = Assert.IsType<
ProjectLaunchConfiguration
>(
Aspire.Hosting.Tests (28)
Dcp\DcpExecutorTests.cs (22)
4192
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4226
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4268
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4304
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4340
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4376
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4407
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4438
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4468
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4497
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
4622
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
5559
Assert.False(debuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
5563
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out _));
6026
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7066
Assert.True(customExe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7241
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7275
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
launchConfiguration));
7318
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
7713
Assert.True(exe.TryGetAnnotationAsObjectList<
ProjectLaunchConfiguration
>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7787
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
7935
static Task<
ProjectLaunchConfiguration
> CreateProjectLaunchConfiguration(string mode, CancellationToken cancellationToken)
8729
Assert.True(exe.TryGetProjectLaunchConfiguration(out
var
plc));
DebugSupportExtensionsTests.cs (6)
104
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
121
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.Debug));
152
var
launchConfiguration = Assert.IsType<
ProjectLaunchConfiguration
>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.NoDebug));