forked from meziantou/Meziantou.Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
64 lines (54 loc) · 2.71 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
54
55
56
57
58
59
60
61
62
63
64
<Project>
<!-- Build options -->
<PropertyGroup>
<LangVersion>10.0</LangVersion>
<TreatWarningsAsErrors Condition="'$(Configuration)' != 'Debug'">true</TreatWarningsAsErrors>
<Deterministic>true</Deterministic>
<LatestTargetFramework>net6.0</LatestTargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ValidateProjectTargets>true</ValidateProjectTargets>
<Features>strict</Features>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<ReportAnalyzer>true</ReportAnalyzer>
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<IsPackable>False</IsPackable>
</PropertyGroup>
<!-- disable the nullable warnings when compiling for target that haven't annotation -->
<PropertyGroup Condition="'$(TargetFramework)' != '$(LatestTargetFramework)'">
<NoWarn>$(NoWarn);nullable</NoWarn>
</PropertyGroup>
<!-- Analyzers -->
<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" Version="1.0.670">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime;build;native;contentfiles;analyzers;buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Package configuration -->
<PropertyGroup>
<_PackageReadmeFilePath Condition="Exists('$(MSBuildProjectDirectory)\readme.md')">$(MSBuildProjectDirectory)\readme.md</_PackageReadmeFilePath>
<Authors>Meziantou</Authors>
<Company>Meziantou</Company>
<PackageProjectUrl>https://github.com/meziantou/Meziantou.Framework</PackageProjectUrl>
<RepositoryUrl>https://github.com/meziantou/Meziantou.Framework.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageIcon>icon.png</PackageIcon>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReadmeFile Condition="$(_PackageReadmeFilePath) != ''">readme.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\icon.png" Pack="true" PackagePath="" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)\LICENSE.txt" Pack="true" PackagePath="" Visible="false" />
<None Include="$(_PackageReadmeFilePath)" Pack="true" PackagePath="" Condition="$(_PackageReadmeFilePath) != ''" />
</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="0.1.66">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>