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)
5417
Assert.True(debuggableExe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs1));
5424
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out _));
6361
Assert.False(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out _));
6365
Assert.False(nonDebuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out _));
6828
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
7112
Assert.True(exe.TryGetAnnotationAsObjectList<TestMauiLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
7220
Executable.
LaunchConfigurationsAnnotation
,
7367
Executable.
LaunchConfigurationsAnnotation
,
7868
Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
8043
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
8219
Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
8573
Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.
LaunchConfigurationsAnnotation
, out var launchConfigs));
11006
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);