UseSharedCompilation now defaults to true in the Microsoft.Net.Compilers.Toolset package. Previously we used the deprecated Microsoft.Net.Compilers package in which the property defaults to false.
<Import Project="..\..\Directory.Build.props" />
<PropertyGroup>
- <!-- We use the compiler toolset that comes from NuGet Packages rather than the SDK built-in.
- This one sets UseSharedCompilation to false by default. -->
- <UseSharedCompilation>true</UseSharedCompilation>
-
<ToolSetCommonDirectory>$(RepoRoot)artifacts\toolset\Common\</ToolSetCommonDirectory>
<IsSourceProject>$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectDirectory), 'src%24'))</IsSourceProject>
</PropertyGroup>