20 instantiations of ExecutableAnnotation
Aspire.Hosting (2)
ApplicationModel\ExecutableResource.cs (1)
31Annotations.Add(new ExecutableAnnotation
ExecutableResourceBuilderExtensions.cs (1)
207executableAnnotation = new ExecutableAnnotation
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
146_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)
5500.WithAnnotation(new ExecutableAnnotation 6899.WithAnnotation(new ExecutableAnnotation 6959.WithAnnotation(new ExecutableAnnotation 7011.WithAnnotation(new ExecutableAnnotation 7055.WithAnnotation(new ExecutableAnnotation 7488.WithAnnotation(new ExecutableAnnotation 7603.WithAnnotation(new ExecutableAnnotation 7663.WithAnnotation(new ExecutableAnnotation 7706.WithAnnotation(new ExecutableAnnotation 8321.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)
295project.TryGetLastAnnotation<ExecutableAnnotation>(out var executableAnnotation);
Dcp\ExecutableLaunchPolicy.cs (1)
100if (resource.TryGetLastAnnotation<ExecutableAnnotation>(out _) &&
ExecutableResourceBuilderExtensions.cs (3)
200var executableAnnotation = builder.Resource.Annotations.OfType<ExecutableAnnotation>().LastOrDefault(); 231if (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)
355var executableAnnotation = Annotations.OfType<ExecutableAnnotation>().Single();
DotnetProjectHostingExtensions.cs (2)
364var executableAnnotation = ctx.Resource.Annotations.OfType<ExecutableAnnotation>().Last();
Aspire.Hosting.Dotnet.Tests (3)
DotnetProjectBuildCoordinatorTests.cs (3)
2601var executableAnnotation = Assert.Single(primaryBuildResource.Annotations.OfType<ExecutableAnnotation>()); 3518buildResource.Annotations.OfType<ExecutableAnnotation>().Single().Command =
Aspire.Hosting.EntityFrameworkCore (4)
EFCoreOperationExecutor.cs (2)
142var execAnnotation = _toolResource.Annotations.OfType<ExecutableAnnotation>().FirstOrDefault();
EFResourceBuilderExtensions.cs (2)
505var executableAnnotation = toolResource.Annotations.OfType<ExecutableAnnotation>().LastOrDefault();
Aspire.Hosting.Maui.Tests (2)
MauiPlatformExtensionsTests.cs (2)
202var 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));