17 references to LaunchConfigurationsAnnotation
Aspire.Hosting (3)
Dcp\ExecutableCreator.cs (2)
261
executable.Metadata.Annotations?.Remove(Executable.
LaunchConfigurationsAnnotation
);
264
executable.SetAnnotationAsObjectList(Executable.
LaunchConfigurationsAnnotation
, plan.LaunchConfigurations);
Dcp\Model\Executable.cs (1)
310
if (this.TryGetAnnotationAsObjectList(
LaunchConfigurationsAnnotation
, out List<ProjectLaunchConfiguration>? launchConfigurations))
Aspire.Hosting.Tests (14)
Dcp\DcpExecutorTests.cs (13)
5418
Assert.True(debuggableExe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs1));
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));
7113
Assert.True(exe.TryGetAnnotationAsObjectList<TestMauiLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
7221
Executable.
LaunchConfigurationsAnnotation
,
7368
Executable.
LaunchConfigurationsAnnotation
,
7869
Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
8044
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
8220
Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
8574
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
10981
Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
Dcp\ExecutableLaunchPlanTests.cs (1)
234
Assert.False(executable.Metadata.Annotations?.ContainsKey(Executable.
LaunchConfigurationsAnnotation
) is true);