Use default setting for UseSharedCompilation (#900)
authorViktor Hofer <viktor.hofer@microsoft.com>
Mon, 16 Dec 2019 15:30:02 +0000 (16:30 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Dec 2019 15:30:02 +0000 (16:30 +0100)
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.

src/libraries/Directory.Build.props

index 6129cb6..4ae7513 100644 (file)
@@ -5,10 +5,6 @@
   <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>