2 writes to Type
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (2)
369Type = entrypointType, 1122Type = entrypointType,
12 references to Type
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
461var entrypointType = entrypointAnnotation.Type; 563if (entrypointAnnotation.Type == declaredType && 575$"Python app resource '{resource.Name}' is configured to run {entrypointAnnotation.Type.ToString().ToLowerInvariant()} '{entrypointAnnotation.Entrypoint}', but publish is using the existing Dockerfile '{dockerfileBuildAnnotation.DockerfilePath}'. " + 942string command = entrypointAnnotation.Type switch 946_ => throw new InvalidOperationException($"Unsupported entrypoint type: {entrypointAnnotation.Type}") 997var entrypointType = entrypointAnnotation.Type; 1138var entrypointType = existingAnnotation.Type;
Aspire.Hosting.Python.Tests (5)
AddPythonAppTests.cs (5)
222Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 966Assert.Equal(EntrypointType.Script, entrypointAnnotation.Type); 985Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 1004Assert.Equal(EntrypointType.Executable, entrypointAnnotation.Type); 1199Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type);