In https://github.com/dotnet/aspnetcore/pull/57742 we introduced a set of workarounds to the trimming test infrastructure to workaround an issue in the runtime repo. Once https://github.com/dotnet/sdk/pull/43070 is merged we should revert the change made in https://github.com/dotnet/aspnetcore/pull/57742/commits/64f60ca87895f41a86b5121fbc3da5ea5efe17e1 and https://github.com/dotnet/aspnetcore/pull/57742/commits/7019edac0ce9f255dc65b0717d4a1f42d1b4e5fe.