22 instantiations of ExecutableAnnotation
Aspire.Hosting (2)
ApplicationModel\ExecutableResource.cs (1)
29Annotations.Add(new ExecutableAnnotation
ExecutableResourceBuilderExtensions.cs (1)
207executableAnnotation = new ExecutableAnnotation
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
164.WithAnnotation(new ExecutableAnnotation
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
146_toolResource.Annotations.Add(new ExecutableAnnotation
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
732new 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 (11)
Dcp\DcpExecutorTests.cs (11)
6240.WithAnnotation(new ExecutableAnnotation 6317.WithAnnotation(new ExecutableAnnotation 7990.WithAnnotation(new ExecutableAnnotation 8050.WithAnnotation(new ExecutableAnnotation 8102.WithAnnotation(new ExecutableAnnotation 8146.WithAnnotation(new ExecutableAnnotation 8579.WithAnnotation(new ExecutableAnnotation 8694.WithAnnotation(new ExecutableAnnotation 8754.WithAnnotation(new ExecutableAnnotation 8797.WithAnnotation(new ExecutableAnnotation 9532.WithAnnotation(new ExecutableAnnotation
43 references to ExecutableAnnotation
Aspire.Hosting (14)
ApplicationModel\DebugSupportExtensions.cs (1)
354if (resource.TryGetLastAnnotation<ExecutableAnnotation>(out _) &&
ApplicationModel\ExecutableLaunchRecipe.cs (5)
455resource.TryGetLastAnnotation<ExecutableAnnotation>(out var executableAnnotation); 551ExecutableAnnotation? executableAnnotation, 872resource.TryGetLastAnnotation<ExecutableAnnotation>(out var executableAnnotation) &&
ApplicationModel\ExecutableResource.cs (2)
46private ExecutableAnnotation GetAnnotation() => Annotations.OfType<ExecutableAnnotation>().LastOrDefault()
Dcp\ExecutableCreator.cs (2)
310project.TryGetLastAnnotation<ExecutableAnnotation>(out var executableAnnotation);
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.Blazor (2)
BlazorGatewayExtensions.cs (2)
173var executableAnnotation = executableResource.Annotations.OfType<ExecutableAnnotation>().Last();
Aspire.Hosting.Blazor.Tests (3)
AddBlazorGatewayTests.cs (3)
65var executable = Assert.Single(gateway.Resource.Annotations.OfType<ExecutableAnnotation>()); 141Assert.Empty(gateway.Resource.Annotations.OfType<ExecutableAnnotation>());
Aspire.Hosting.Dotnet (5)
DotnetProjectBuildCoordinator.cs (1)
932if (resource?.Annotations.OfType<ExecutableAnnotation>().LastOrDefault() is { } executable &&
DotnetProjectBuildResource.cs (2)
355var executableAnnotation = Annotations.OfType<ExecutableAnnotation>().Single();
DotnetProjectHostingExtensions.cs (2)
440var executableAnnotation = ctx.Resource.Annotations.OfType<ExecutableAnnotation>().Last();
Aspire.Hosting.Dotnet.Tests (3)
DotnetProjectBuildCoordinatorTests.cs (3)
3709var executableAnnotation = Assert.Single(primaryBuildResource.Annotations.OfType<ExecutableAnnotation>()); 4780buildResource.Annotations.OfType<ExecutableAnnotation>().Single().Command =
Aspire.Hosting.EntityFrameworkCore (4)
EFCoreOperationExecutor.cs (2)
142var execAnnotation = _toolResource.Annotations.OfType<ExecutableAnnotation>().FirstOrDefault();
EFResourceBuilderExtensions.cs (2)
497var 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)
29var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 41var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 56var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 78var annotation = executable.Resource.Annotations.OfType<ExecutableAnnotation>().Single(); 86var property = typeof(ExecutableAnnotation).GetProperty(nameof(ExecutableAnnotation.WorkingDirectoryExplicitlySet));