diff --git a/src/Sdk/Utils/DotNetMuxer.cs b/src/Sdk/Utils/DotNetMuxer.cs index 9af16859bb5..d1592c46f74 100644 --- a/src/Sdk/Utils/DotNetMuxer.cs +++ b/src/Sdk/Utils/DotNetMuxer.cs @@ -5,6 +5,13 @@ /// https://github.com/dotnet/aspnetcore/blob/main/src/Shared/CommandLineUtils/Utilities/DotNetMuxer.cs +using System; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Runtime.InteropServices; + namespace Sdk.Utils { /// @@ -34,19 +41,6 @@ public static string MuxerPathOrDefault() private static string? TryFindMuxerPath() { - // If not running on Helix, use a custom .NET host, if specified. - // This allows test projects to use a .NET host with the custom-built - // ASP.NET Core shared framework. - if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) - { - var dotNetHostOverride = typeof(DotNetMuxer).Assembly.GetCustomAttributes() - .SingleOrDefault(a => a.Key == "DotNetHostOverride")?.Value; - if (dotNetHostOverride is not null) - { - return dotNetHostOverride; - } - } - var expectedFileName = MuxerName; if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {