roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Microsoft.Net.Compilers.props should work for MSBuild 15

Open rainersigwald opened this issue 10 years ago • 2 comments

Microsoft.Net.Compilers.props has a hardcoded check for MSBuildToolsVersion 14.0:

<!-- By default don't use the compiler server on VS 2015 and never use it
     otherwise (it is not yet supported on VS 2013 or below).-->
<UseSharedCompilation Condition="'$(UseSharedCompilation)' == ''
    or '$(MSBuildToolsVersion)' != '14.0'">false</UseSharedCompilation>

It seems like this should be

<UseSharedCompilation Condition="'$(UseSharedCompilation)' == ''
    or '$(MSBuildToolsVersion)' <= '14.0'">false</UseSharedCompilation>

(version <= instead of !=)

So that the default remains correct now that MSBuild is introducing the 15.0 version for dev15.

rainersigwald avatar May 16 '16 20:05 rainersigwald

The check for the two UsingTask statements in the file should also be updated similarly.

mmjb avatar May 17 '16 07:05 mmjb

This was fixed in #11998.

jasonmalinowski avatar Aug 25 '16 00:08 jasonmalinowski