-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
58 lines (50 loc) · 2.81 KB
/
Directory.Build.props
File metadata and controls
58 lines (50 loc) · 2.81 KB
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
<Project>
<PropertyGroup>
<!-- Build settings -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- CS1591: Missing XML comment - suppress until all public API is documented -->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<!-- Library multi-targeting: set LibTargetFrameworks env var in CI workflows.
Locally defaults to net8.0. Override: set LibTargetFrameworks=net8.0;net9.0 -->
<LibTargetFrameworks Condition="'$(LibTargetFrameworks)' == ''">net8.0</LibTargetFrameworks>
<!-- Version - can be overridden by CI/CD -->
<Version>3.0.0</Version>
<VersionPrefix>$(Version.Split('-')[0])</VersionPrefix>
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
<FileVersion>$(VersionPrefix)</FileVersion>
<!-- NuGet package metadata -->
<Authors>Valerii Pozdnyakov</Authors>
<Company>Valerii Pozdnyakov</Company>
<Copyright>Copyright © 2022-$([System.DateTime]::Now.Year) Valerii Pozdnyakov</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/vposd/CachedQueries</PackageProjectUrl>
<RepositoryUrl>https://github.com/vposd/CachedQueries</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon Condition="Exists('$(MSBuildThisFileDirectory)icon.png')">icon.png</PackageIcon>
<PackageReleaseNotes>See https://github.com/vposd/CachedQueries/releases</PackageReleaseNotes>
<!-- Build configuration -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Deterministic builds for reproducibility -->
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<!-- Package validation to catch accidental breaking changes -->
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\"/>
<None Include="$(MSBuildThisFileDirectory)icon.png" Pack="true" PackagePath="\"
Condition="Exists('$(MSBuildThisFileDirectory)icon.png')"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>
</Project>