forked from dotnet/iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompilers.props
19 lines (18 loc) · 1.06 KB
/
Compilers.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Project>
<PropertyGroup>
<!-- This is set to false by default when using the compilers' NuGet package. -->
<UseSharedCompilation>true</UseSharedCompilation>
<!-- Use the inbox compilers that come with the SDK -->
<UseSdkCompilers>true</UseSdkCompilers>
<CompilerVersion>4.2.0</CompilerVersion>
</PropertyGroup>
<PropertyGroup>
<_IsTestProject Condition="$(MSBuildProjectName.EndsWith('Tests', StringComparison.OrdinalIgnoreCase))">true</_IsTestProject>
<NoWarn Condition="'$(_IsTestProject)' != 'true'">$(NoWarn.Replace("1591", ""))</NoWarn> <!-- Removing CS1591 from warning exclusion list as we want to make sure documentation is enforced -->
<GenerateDocumentationFile Condition="'$(_IsTestProject)' != 'true'">true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Condition="'$(UseSdkCompilers)' != 'true'" Include="Microsoft.Net.Compilers.Toolset" Version="$(CompilerVersion)" IsImplicitlyDefined="true" PrivateAssets="all" />
</ItemGroup>
</Project>