From e6ba01eac38e671a3b08bb9c2d7e499073d02548 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Thu, 7 Nov 2024 21:51:05 -0600 Subject: [PATCH] allow reading all mcr image names --- .../Tasks/ComputeDotnetBaseImageAndTag.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs b/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs index b5573582900b..fcb0b66922f7 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs @@ -320,11 +320,11 @@ private bool ComputeRepositoryAndTag([NotNullWhen(true)] out string? repository, }; } - private bool UserImageIsMicrosoftBaseImage => UserBaseImage?.StartsWith("mcr.microsoft.com/dotnet") ?? false; + private bool UserImageIsMicrosoftBaseImage => UserBaseImage?.StartsWith("mcr.microsoft.com/") ?? false; private void LogNoInferencePerformedTelemetry() { - // we should only log the base image, tag, containerFamily if we _know_ they are .NET's MCR images + // we should only log the base image, tag, containerFamily if we _know_ they are MCR images string? userBaseImage = null; string? userTag = null; string? containerFamily = null;