20 instantiations of ExecutableAnnotation
Aspire.Hosting (2)
ApplicationModel\ExecutableResource.cs (1)
31Annotations.Add(new ExecutableAnnotation
ExecutableResourceBuilderExtensions.cs (1)
192executableAnnotation = new ExecutableAnnotation
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
143_toolResource.Annotations.Add(new ExecutableAnnotation
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
715new ExecutableAnnotation { Command = "dlv", WorkingDirectory = builder.Resource.WorkingDirectory },
Aspire.Hosting.Maui (6)
MauiAndroidExtensions.cs (2)
163.WithAnnotation(new ExecutableAnnotation 368.WithAnnotation(new ExecutableAnnotation
MauiiOSExtensions.cs (2)
170.WithAnnotation(new ExecutableAnnotation 381.WithAnnotation(new ExecutableAnnotation
MauiMacCatalystExtensions.cs (1)
93.WithAnnotation(new ExecutableAnnotation
MauiWindowsExtensions.cs (1)
93.WithAnnotation(new ExecutableAnnotation
Aspire.Hosting.Tests (10)
Dcp\DcpExecutorTests.cs (10)
4887.WithAnnotation(new ExecutableAnnotation 6286.WithAnnotation(new ExecutableAnnotation 6346.WithAnnotation(new ExecutableAnnotation 6398.WithAnnotation(new ExecutableAnnotation 6442.WithAnnotation(new ExecutableAnnotation 6875.WithAnnotation(new ExecutableAnnotation 6990.WithAnnotation(new ExecutableAnnotation 7050.WithAnnotation(new ExecutableAnnotation 7093.WithAnnotation(new ExecutableAnnotation 7650.WithAnnotation(new ExecutableAnnotation
37 references to ExecutableAnnotation
Aspire.Hosting (14)
ApplicationModel\ExecutableLaunchRecipe.cs (5)
441resource.TryGetLastAnnotation<ExecutableAnnotation>(out var executableAnnotation); 534ExecutableAnnotation? executableAnnotation, 834resource.TryGetLastAnnotation<ExecutableAnnotation>(out var executableAnnotation) &&
ApplicationModel\ExecutableResource.cs (2)
48private ExecutableAnnotation GetAnnotation() => Annotations.OfType<ExecutableAnnotation>().LastOrDefault()
Dcp\ExecutableCreator.cs (2)
219project.TryGetLastAnnotation<ExecutableAnnotation>(out var executableAnnotation);
Dcp\ExecutableLaunchPolicy.cs (1)
89if (resource.TryGetLastAnnotation<ExecutableAnnotation>(out _) &&
ExecutableResourceBuilderExtensions.cs (3)
185var executableAnnotation = builder.Resource.Annotations.OfType<ExecutableAnnotation>().LastOrDefault(); 216if (builder.Resource.Annotations.OfType<ExecutableAnnotation>().LastOrDefault() is { } executableAnnotation)
Lifecycle\TerminalHostEventingSubscriber.cs (1)
61if (host.Annotations.OfType<ExecutableAnnotation>().LastOrDefault() is not { } annotation)
Aspire.Hosting.Dotnet (4)
DotnetProjectBuildResource.cs (2)
281var executableAnnotation = Annotations.OfType<ExecutableAnnotation>().Single();
DotnetProjectHostingExtensions.cs (2)
315var executableAnnotation = ctx.Resource.Annotations.OfType<ExecutableAnnotation>().Last();
Aspire.Hosting.Dotnet.Tests (3)
DotnetProjectBuildCoordinatorTests.cs (3)
2061var executableAnnotation = Assert.Single(primaryBuildResource.Annotations.OfType<ExecutableAnnotation>()); 2601buildResource.Annotations.OfType<ExecutableAnnotation>().Single().Command =
Aspire.Hosting.EntityFrameworkCore (4)
EFCoreOperationExecutor.cs (2)
139var execAnnotation = _toolResource.Annotations.OfType<ExecutableAnnotation>().FirstOrDefault();
EFResourceBuilderExtensions.cs (2)
416var executableAnnotation = toolResource.Annotations.OfType<ExecutableAnnotation>().LastOrDefault();
Aspire.Hosting.Maui.Tests (2)
MauiPlatformExtensionsTests.cs (2)
201var execAnnotation = resource.Annotations.OfType<ExecutableAnnotation>().FirstOrDefault();
Aspire.Hosting.Tests (10)
ExecutableResourceBuilderExtensionTests.cs (10)
30var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 42var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 57var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 79var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 87var property = typeof(ExecutableAnnotation).GetProperty(nameof(ExecutableAnnotation.WorkingDirectoryExplicitlySet));