17 references to LaunchConfigurationsAnnotation
Aspire.Hosting (3)
Dcp\ExecutableCreator.cs (2)
185
executable.Metadata.Annotations?.Remove(Executable.
LaunchConfigurationsAnnotation
);
188
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)
4698
Assert.True(debuggableExe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs1));
4705
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out _));
5642
Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out _));
5646
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out _));
6109
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
6393
Assert.True(exe.TryGetAnnotationAsObjectList<TestMauiLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
6501
Executable.
LaunchConfigurationsAnnotation
,
6648
Executable.
LaunchConfigurationsAnnotation
,
7149
Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
7324
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
7442
Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
7796
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
9723
Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
Dcp\ExecutableLaunchPlanTests.cs (1)
203
Assert.False(executable.Metadata.Annotations?.ContainsKey(Executable.
LaunchConfigurationsAnnotation
) is true);