-
Notifications
You must be signed in to change notification settings - Fork 47
/
Directory.Build.props
44 lines (39 loc) · 1.85 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
43
44
<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_MacCatalyst>true</Build_MacCatalyst>
<Build_Windows Condition="$([MSBuild]::IsOSPlatform('windows'))">true</Build_Windows>
<Build_Windows Condition="!$([MSBuild]::IsOSPlatform('windows'))">false</Build_Windows>
<Build_Desktop>true</Build_Desktop>
<Build_Web>true</Build_Web>
</PropertyGroup>
<Import Project="DebugPlatforms.props" Condition="exists('DebugPlatforms.props')" />
<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_MacCatalyst)" Text="MacOS not included in build" />
<Message Importance="high" Condition="!$(Build_Windows)" Text="Windows not included in build" />
</Target>
</Project>