21 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)
163.WithAnnotation(new ExecutableAnnotation
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
146_toolResource.Annotations.Add(new ExecutableAnnotation
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
713new 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)
5499.WithAnnotation(new ExecutableAnnotation 6898.WithAnnotation(new ExecutableAnnotation 6958.WithAnnotation(new ExecutableAnnotation 7010.WithAnnotation(new ExecutableAnnotation 7054.WithAnnotation(new ExecutableAnnotation 7487.WithAnnotation(new ExecutableAnnotation 7602.WithAnnotation(new ExecutableAnnotation 7662.WithAnnotation(new ExecutableAnnotation 7705.WithAnnotation(new ExecutableAnnotation 8320.WithAnnotation(new ExecutableAnnotation
42 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)
46private 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.Blazor (2)
BlazorGatewayExtensions.cs (2)
172var executableAnnotation = executableResource.Annotations.OfType<ExecutableAnnotation>().Last();
Aspire.Hosting.Blazor.Tests (3)
AddBlazorGatewayTests.cs (3)
39var executable = Assert.Single(gateway.Resource.Annotations.OfType<ExecutableAnnotation>()); 115Assert.Empty(gateway.Resource.Annotations.OfType<ExecutableAnnotation>());
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)
502var 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));