diff --git a/eng/cake/dotnet.cake b/eng/cake/dotnet.cake index 45fdf03a62e6..06c442dc6845 100644 --- a/eng/cake/dotnet.cake +++ b/eng/cake/dotnet.cake @@ -579,7 +579,6 @@ void SetDotNetEnvironmentVariables(string dotnetDir = null) SetEnvironmentVariable("DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR", dotnet); SetEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0"); SetEnvironmentVariable("MSBuildEnableWorkloadResolver", "true"); - SetEnvironmentVariable("ForceNet8Current", "true"); SetEnvironmentVariable("PATH", dotnet, prepend: true); // Get "full" .binlog in Project System Tools diff --git a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/DotnetInternal.cs b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/DotnetInternal.cs index c69a2a897b34..08326e266c69 100644 --- a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/DotnetInternal.cs +++ b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/DotnetInternal.cs @@ -108,7 +108,6 @@ public static string RunForOutput(string command, string args, out int exitCode, var pinfo = new ProcessStartInfo(DotnetTool, $"{command} {args}"); pinfo.EnvironmentVariables["DOTNET_MULTILEVEL_LOOKUP"] = "0"; pinfo.EnvironmentVariables["DOTNET_ROOT"] = DotnetRoot; - pinfo.EnvironmentVariables["ForceNet8Current"] = "true"; return ToolRunner.Run(pinfo, out exitCode, timeoutInSeconds: timeoutInSeconds); }