Imported from dotnet-sig/dotnet8.0 commit ecce7a2b2827e55c753e7786ae1773a11086e01a: ecce7a2b28?branch=main Resolves: RHBZ#2224124
ecce7a2b28