-
Notifications
You must be signed in to change notification settings - Fork 0
/
SharedProps.targets
33 lines (29 loc) · 1.36 KB
/
SharedProps.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Language)' == 'C#'">
<LangVersion Condition="'$(LangVersion)' != 'latest'
and '$(LangVersion)' != 'preview'
and $([MSBuild]::VersionLessThan($(LangVersion), $(DefaultCSharpLangVersion)))">$(DefaultCSharpLangVersion)</LangVersion>
<Nullable Condition="'$(Nullable)' == ''">enable</Nullable>
<WarningsAsErrors>$(WarningsAsErrors);nullable</WarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<NoWarn>$(NoWarn);CA1716;CA1826;CA2000</NoWarn>
<!-- FXCop warnings that aren't terribly useful for tests, most of the time. -->
<NoWarn Condition="'$(Tests)' == 'true' And '$(KeepDesignWarnings)' != 'true'">
$(NoWarn);CA1034;CA1062
</NoWarn>
<NoWarn Condition="'$(Tests)' == 'true' And '$(KeepGlobalizeWarnings)' != 'true'">
$(NoWarn);CA1305
</NoWarn>
<NoWarn Condition="'$(Tests)' == 'true' And '$(KeepPerfWarnings)' != 'true'">
$(NoWarn);CA1805
</NoWarn>
<NoWarn Condition="'$(Tests)' == 'true' And '$(KeepReliableWarnings)' != 'true'">
$(NoWarn);CA2007;CA2225
</NoWarn>
<NoWarn Condition="'$(Tests)' == 'true' And '$(KeepDiscardWarnings)' != 'true'">
$(NoWarn);IDE0058;CA1002;CS1591
</NoWarn>
</PropertyGroup>
</Project>