-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDirectory.Build.props
53 lines (44 loc) · 2.35 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
52
53
<Project>
<PropertyGroup>
<_ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true' or '$(GITHUB_ACTIONS)' == 'true' or '$(GITLAB_CI)' == 'true'">True</_ContinuousIntegrationBuild>
<LangVersion>10</LangVersion>
<TreatWarningsAsErrors Condition="'$(Configuration)' != 'Debug'">true</TreatWarningsAsErrors>
<Deterministic>true</Deterministic>
<Features>strict</Features>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<NoWarn>$(NoWarn);CA1014;CA1031;xUnit1026</NoWarn>
<ReportAnalyzer>true</ReportAnalyzer>
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<RestoreSources>https://api.nuget.org/v3/index.json</RestoreSources>
</PropertyGroup>
<!-- Package attributes -->
<PropertyGroup>
<Authors>Meziantou</Authors>
<Company>Meziantou</Company>
<PackageProjectUrl>https://github.com/meziantou/Meziantou.Xunit.ParallelTestFramework</PackageProjectUrl>
<RepositoryUrl>https://github.com/meziantou/Meziantou.Xunit.ParallelTestFramework.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<!-- disable the nullable warnings when compiling for target that haven't annotation -->
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'netcoreapp2.1'">
<NoWarn>$(NoWarn);8600;8601;8602;8603;8604;8619;8767</NoWarn>
</PropertyGroup>
<!-- Analyzers -->
<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.162">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- SourceLink and Reproducible Builds: https://www.meziantou.net/2018/07/09/how-to-debug-nuget-packages-using-sourcelink -->
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/" />
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>