forked from unoplatform/uno.extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
39 lines (35 loc) · 1.54 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
<Project>
<!-- Disabling for the moment as will cause too many breaks -->
<!--<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<PropertyGroup>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\..\stylecop.json" />
</ItemGroup>-->
<PropertyGroup>
<!-- Forces Uno's XamlFileGenerator to write error when XAML is invalid-->
<ShouldWriteErrorOnInvalidXaml>True</ShouldWriteErrorOnInvalidXaml>
</PropertyGroup>
<PropertyGroup>
<Build_Android>true</Build_Android>
<Build_iOS>true</Build_iOS>
<Build_MacOS>true</Build_MacOS>
<Build_Windows>true</Build_Windows>
</PropertyGroup>
<Target Name="Log disabled platforms" BeforeTargets="BeforeBuild">
<Message Importance="high" Condition="!$(Build_Android)" Text="Android not included in build" />
<Message Importance="high" Condition="!$(Build_iOS)" Text="iOS not included in build" />
<Message Importance="high" Condition="!$(Build_MacOS)" Text="MacOS not included in build" />
<Message Importance="high" Condition="!$(Build_Windows)" Text="Windows not included in build" />
</Target>
</Project>