-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy pathDirectory.Build.props
42 lines (33 loc) · 2.42 KB
/
Directory.Build.props
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
34
35
36
37
38
39
40
41
42
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<PropertyGroup>
<SimulateCsWinRTNugetReference>true</SimulateCsWinRTNugetReference>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--
Don't fail builds for well known warnings in projections that are lower priority:
"CS0108: 'PivotItemDataAutomationPeer.Realize()' hides inherited member 'ItemAutomationPeer.Realize()'. Use the new keyword if hiding was intended."
"CS0109: The member 'IChatMessage2.Status' does not hide an accessible member. The new keyword is not required."
"CS0114: 'IUnSealedCustomEquals.GetHashCode()' hides inherited member 'object.GetHashCode()'. To make the current member
override that implementation, add the override keyword. Otherwise add the new keyword."
"CS0219: The variable '__retval' is assigned but its value is never used."
"CS0628: 'ToggleSwitch.OnToggled()': new protected member declared in sealed type"
"CS0660: 'CustomEquals2' defines operator == or operator != but does not override Object.Equals(object o)"
"CA2257: The 'ABI.Windows.Foundation.Collections.IMapChangedEventArgs<K>.Vftbl' member on the 'ABI.Windows.Foundation.Collections.IMapChangedEventArgs<K>'
type should be marked 'static' as 'ABI.Windows.Foundation.Collections.IMapChangedEventArgs<K>' has the 'DynamicInterfaceImplementationAttribute' applied"
-->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0108;CS0109;CS0114;CS0219;CS0628;CS0660;CA2257</WarningsNotAsErrors>
<!-- Projections should not require runtime marshalling. -->
<DisableRuntimeMarshalling>True</DisableRuntimeMarshalling>
<CsWinRTAotOptimizerEnabled Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) >= 6">Auto</CsWinRTAotOptimizerEnabled>
</PropertyGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup Condition="!$(IsTargetFrameworkNet5OrGreater) AND '$(TargetFramework)' != ''">
<CsWinRTIIDOptimizerOptOut>true</CsWinRTIIDOptimizerOptOut>
</PropertyGroup>
<PropertyGroup Condition="$(IsTargetFrameworkNet5OrGreater)">
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>
<PropertyGroup Condition="$(IsTargetFrameworkNet8OrGreater)">
<IsAotCompatible>true</IsAotCompatible>
</PropertyGroup>
</Project>