-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
53 lines (46 loc) · 2.38 KB
/
Copy pathDirectory.Build.props
File metadata and controls
53 lines (46 loc) · 2.38 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
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<Deterministic>true</Deterministic>
</PropertyGroup>
<!-- Versioning: CI passes -p:Version=x.y.z -->
<PropertyGroup>
<VersionPrefix Condition="'$(VersionPrefix)' == ''">0.0.1</VersionPrefix>
<VersionSuffix Condition="'$(VersionSuffix)' == ''">local</VersionSuffix>
<Version Condition="'$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</Version>
<Version Condition="'$(VersionSuffix)' == ''">$(VersionPrefix)</Version>
</PropertyGroup>
<!-- Package metadata -->
<PropertyGroup>
<Authors>Alexander Nachtmann</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/ANcpLua/dotcov</RepositoryUrl>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<PackageTags>coverage;cobertura;testing;nuke;ci;dotnet-tool</PackageTags>
</PropertyGroup>
<!-- Package README: without PackageReadmeFile nuget.org renders only <Description> and shows a
"missing a README" banner. Each src project ships its own minimal README.md next to the
csproj; the Exists() guard makes this a no-op for tests (no README, nothing to pack).
EnableDefaultNoneItems already globs the file in, so Pack metadata goes on via Update
from Directory.Build.targets — Include here would duplicate the item (NETSDK1022). -->
<PropertyGroup Condition="Exists('$(MSBuildProjectDirectory)/README.md')">
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<!-- CI-specific settings -->
<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- ANcpLua.Analyzers: dev-only analyzer suite (AL1506 ExcludeFromCodeCoverage hygiene + others).
Applied to shipping code only; tests opt out. -->
<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('Tests'))">
<PackageReference Include="ANcpLua.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>