-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Directory.Build.props
97 lines (80 loc) · 3.9 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--Default project info-->
<PropertyGroup>
<Authors>Ian Qvist</Authors>
<Copyright>Copyright 2022, by Ian Qvist. All rights reserved.</Copyright>
<Description>A simple .NET based search client for Wikipedia</Description>
</PropertyGroup>
<!--Default project settings-->
<PropertyGroup>
<!-- Set copying files etc. to timeout faster -->
<CopyRetryCount>2</CopyRetryCount>
<CopyRetryDelayMilliseconds>500</CopyRetryDelayMilliseconds>
<!--Assembly settings-->
<RootNamespace>Genbox.$(MSBuildProjectName)</RootNamespace>
<AssemblyName>Genbox.$(MSBuildProjectName)</AssemblyName>
<!--C# settings-->
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<!--.NET settings-->
<ImplicitUsings>true</ImplicitUsings>
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
<!--Debug settings-->
<DebugType>portable</DebugType>
<!--Package settings-->
<RepositoryType>Git</RepositoryType>
<PackageProjectUrl>https://github.com/Genbox/$(MSBuildProjectName)</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<!--SourceLink-->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!--Analyzers-->
<WarningLevel>0</WarningLevel>
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>false</RunAnalyzersDuringLiveAnalysis>
<EnableNETAnalyzers>false</EnableNETAnalyzers>
<AnalysisLevel>none</AnalysisLevel>
<!--Other settings-->
<ErrorReport>none</ErrorReport>
</PropertyGroup>
<!--Default packages-->
<ItemGroup>
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
</ItemGroup>
<!--Analyzers-->
<ItemGroup Condition="'$(BuildingInsideVisualStudio)' == 'true'">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0" PrivateAssets="all" />
<PackageReference Include="IDisposableAnalyzers" Version="4.0.1" PrivateAssets="all" />
<PackageReference Include="Roslynator.Analyzers" Version="4.0.0" PrivateAssets="all" />
<PackageReference Include="ToStringWithoutOverrideAnalyzer" Version="0.6.0" PrivateAssets="all" />
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0" PrivateAssets="all" />
<PackageReference Include="AspNetCoreAnalyzers" Version="0.3.0" />
<PackageReference Include="ReflectionAnalyzers" Version="0.3.1" />
</ItemGroup>
<!--Only analyze when using Visual Studio-->
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' == 'true'">
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<WarningLevel>5</WarningLevel>
<AnalysisMode>Default</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
</PropertyGroup>
<!--MinVer versioning-->
<Target Name="ModifyAssemblyVersion" AfterTargets="MinVer">
<PropertyGroup>
<AssemblyVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).0</AssemblyVersion>
</PropertyGroup>
</Target>
</Project>