forked from nventive/UnoApplicationTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
51 lines (44 loc) · 2.26 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
45
46
47
48
49
50
51
<Project>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<!-- Microsoft.VisualStudio.Threading.Analyzers has the async void analyzers. -->
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.5.22" PrivateAssets="all" />
<PackageReference Include="GooseAnalyzers" Version="1.0.0" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\..\stylecop.json" Visible="False" />
</ItemGroup>
<!-- Instructs MSBuild to use hard links instead of copying files - this speeds up the build process. -->
<PropertyGroup>
<CreateHardLinksForCopyFilesToOutputDirectoryIfPossible>true</CreateHardLinksForCopyFilesToOutputDirectoryIfPossible>
<CreateHardLinksForCopyLocalIfPossible>true</CreateHardLinksForCopyLocalIfPossible>
<CreateHardLinksForAdditionalFilesIfPossible>true</CreateHardLinksForAdditionalFilesIfPossible>
<CreateHardLinksForPublishFilesIfPossible>true</CreateHardLinksForPublishFilesIfPossible>
</PropertyGroup>
<PropertyGroup>
<!-- Enable all the applicable CA rules as build warnings by default. -->
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>
<PropertyGroup>
<!-- Forces Uno's XamlFileGenerator to write error when XAML is invalid. -->
<ShouldWriteErrorOnInvalidXaml>True</ShouldWriteErrorOnInvalidXaml>
</PropertyGroup>
<!-- Environment-specific build variables are defined here. -->
<PropertyGroup Condition="'$(ApplicationEnvironment)'=='Staging'">
<DefineConstants>$(DefineConstants);STAGING</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(ApplicationEnvironment)'=='Production'">
<DefineConstants>$(DefineConstants);PRODUCTION</DefineConstants>
</PropertyGroup>
<!-- Define the IsLightBuild property. It's set to true by the CI pipeline when a pull request is built. -->
<PropertyGroup>
<IsLightBuild>False</IsLightBuild>
</PropertyGroup>
</Project>