Skip to content

Commit 8cc8392

Browse files
authored
Delete DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER workarounds (#79035)
This workaround is no longer needed with .NET SDK 7 GA
1 parent b49fcc6 commit 8cc8392

File tree

8 files changed

+1
-24
lines changed

8 files changed

+1
-24
lines changed

eng/common/tools.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,6 @@ function MSBuild {
416416
export NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS=20
417417
Write-PipelineSetVariable -name "NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS" -value "20"
418418
Write-PipelineSetVariable -name "NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS" -value "20"
419-
420-
# https://github.com/dotnet/arcade/issues/11369 - disable new MSBuild server feature on linux
421-
# This feature is new and can result in build failures from connection timeout errors.
422-
export DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1
423-
Write-PipelineSetVariable -name "DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER" -value "1"
424-
425419
fi
426420

427421
local toolset_dir="${_InitializeToolset%/*}"

eng/pipelines/coreclr/templates/run-performance-job.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ jobs:
9090
sudo apt-get update &&
9191
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates &&
9292
$(HelixPreCommandsWasmOnLinux) &&
93-
export DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1 &&
9493
export PERFLAB_UPLOAD_TOKEN="$(HelixPerfUploadTokenValue)"
9594
|| export PERF_PREREQS_INSTALL_FAILED=1;
9695
test "x$PERF_PREREQS_INSTALL_FAILED" = "x1" && echo "** Error: Failed to install prerequites **"

eng/testing/performance/microbenchmarks.proj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
<Python>python3</Python>
3535
<CoreRun>$(BaseDirectory)/Core_Root/corerun</CoreRun>
3636
<BaselineCoreRun>$(BaseDirectory)/Baseline_Core_Root/corerun</BaselineCoreRun>
37-
<!-- Set DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1 as a workaround for https://github.com/dotnet/runtime/issues/74328 -->
38-
<HelixPreCommands>$(HelixPreCommands);chmod +x $(PerformanceDirectory)/tools/machine-setup.sh;. $(PerformanceDirectory)/tools/machine-setup.sh;export DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1</HelixPreCommands>
37+
<HelixPreCommands>$(HelixPreCommands);chmod +x $(PerformanceDirectory)/tools/machine-setup.sh;. $(PerformanceDirectory)/tools/machine-setup.sh</HelixPreCommands>
3938
<ArtifactsDirectory>$HELIX_WORKITEM_ROOT/artifacts/BenchmarkDotNet.Artifacts</ArtifactsDirectory>
4039
<BaselineArtifactsDirectory>$HELIX_WORKITEM_ROOT/artifacts/BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
4140
<ResultsComparer>$(PerformanceDirectory)/src/tools/ResultsComparer/ResultsComparer.csproj</ResultsComparer>

eng/testing/tests.wasm.targets

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,12 @@
7474
<SetScriptCommands Condition="'$(JSEngine)' != ''" Include="export JS_ENGINE=--engine=$(JSEngine)" />
7575
<SetScriptCommands Condition="'$(JSEngineArgs)' != ''" Include="export JS_ENGINE_ARGS=$(JSEngineArgs)" />
7676
<SetScriptCommands Condition="'$(_WasmMainJSFileName)' != ''" Include="export MAIN_JS=--js-file=$(_WasmMainJSFileName)" />
77-
<!-- Workaround for https://github.com/dotnet/runtime/issues/74328 -->
78-
<SetScriptCommands Condition="'$(BuildAOTTestsOnHelix)' == 'true'" Include="export DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1" />
7977
</ItemGroup>
8078
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
8179
<SetScriptCommands Condition="'$(Scenario)' != '' and '$(ContinuousIntegrationBuild)' != 'true'" Include="set &quot;SCENARIO=$(Scenario)&quot;" />
8280
<SetScriptCommands Condition="'$(JSEngine)' != ''" Include="set &quot;JS_ENGINE=--engine^=$(JSEngine)&quot;" />
8381
<SetScriptCommands Condition="'$(JSEngineArgs)' != ''" Include="set &quot;JS_ENGINE_ARGS=$(JSEngineArgs)&quot;" />
8482
<SetScriptCommands Condition="'$(_WasmMainJSFileName)' != ''" Include="set &quot;MAIN_JS=--js-file^=$(_WasmMainJSFileName)&quot;" />
85-
<!-- Workaround for https://github.com/dotnet/runtime/issues/74328 -->
86-
<SetScriptCommands Condition="'$(BuildAOTTestsOnHelix)' == 'true'" Include="set DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1" />
8783
</ItemGroup>
8884

8985
<PropertyGroup>

src/installer/tests/TestUtils/DotNetCli.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public Command Exec(string command, params string[] args)
5353
newArgs.Insert(0, command);
5454

5555
return Command.Create(DotnetExecutablePath, newArgs)
56-
.EnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "1") // https://github.com/dotnet/runtime/issues/74328
5756
.EnvironmentVariable("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", "1")
5857
.EnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0"); // Avoid looking at machine state by default
5958
}

src/mono/wasm/Wasm.Build.Tests/BuildEnvironment.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ public BuildEnvironment()
113113
// helps with debugging
114114
EnvVars["WasmNativeStrip"] = "false";
115115

116-
// Works around an issue in msbuild due to which
117-
// second, and subsequent builds fail without any details
118-
// in the logs
119-
EnvVars["DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER"] = "1";
120-
DefaultBuildArgs += " /nr:false";
121-
122116
DotNet = Path.Combine(sdkForWorkloadPath!, "dotnet");
123117
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
124118
DotNet += ".exe";

src/mono/wasm/Wasm.Build.Tests/DotNetCommand.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public DotNetCommand(BuildEnvironment buildEnv, ITestOutputHelper _testOutput, b
1616
_useDefaultArgs = useDefaultArgs;
1717
if (useDefaultArgs)
1818
WithEnvironmentVariables(buildEnv.EnvVars);
19-
// workaround msbuild issue - https://github.com/dotnet/runtime/issues/74328
20-
WithEnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "1");
2119
}
2220

2321
protected override string GetFullArgs(params string[] args)

src/mono/wasm/Wasm.Build.Tests/RunCommand.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ public RunCommand(BuildEnvironment buildEnv, ITestOutputHelper _testOutput, stri
1515
WithEnvironmentVariable("DOTNET_INSTALL_DIR", Path.GetDirectoryName(buildEnv.DotNet)!);
1616
WithEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0");
1717
WithEnvironmentVariable("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", "1");
18-
// workaround msbuild issue - https://github.com/dotnet/runtime/issues/74328
19-
WithEnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "1");
2018
}
2119
}

0 commit comments

Comments
 (0)