diff --git a/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs b/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs index 836b44e90751..bea998904abe 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs @@ -297,11 +297,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;