Disable shared compilation when building wslsettings (#40289)
* Disable shared compilation when building wslsettings * Update src/windows/wslsettings/directory.build.targets.in Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Blue committed
Apr 23, 2026 at 14:34 UTC
c9effdc56f426ea1229d9e8181ce93729158e88e
1 file changed
+4
src/windows/wslsettings/directory.build.targets.in
+4
@@ -1,4 +1,8 @@
1
<Project>
2
+ <PropertyGroup>
3
+ <!-- Disable the Roslyn shared compiler server (VBCSCompiler) to avoid intermittent CS0016 errors -->
4
+ <UseSharedCompilation>false</UseSharedCompilation>
5
+ </PropertyGroup>
6
<ItemGroup>
7
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="${WINDOWS_SDK_DOTNET_VERSION}" TargetingPackVersion="${WINDOWS_SDK_DOTNET_VERSION}" />
8
<!-- The below can be removed when the OneBranch pipeline container image is updated to use a newer version of the dotnet SDK -->