-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
34 lines (33 loc) · 2.31 KB
/
Copy pathDirectory.Build.props
File metadata and controls
34 lines (33 loc) · 2.31 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Project Properties">
<!-- Library targets net8.0 (Scrutor 7.x supports net8.0+). Multi-targeting is a
separate modernization concern. The build/ project overrides this to net10.0. -->
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Label="Variables">
<CurrentYear>$([System.DateTime]::Now.ToString("yyyy"))</CurrentYear>
</PropertyGroup>
<PropertyGroup Label="GitVersion Integration">
<!-- Enable GitVersion integration for local builds -->
<EnableGitVersionTask Condition="'$(GITHUB_ACTIONS)' != 'true'">true</EnableGitVersionTask>
<!-- This is the AUTHORITATIVE package version on CI. We do NOT reference the
GitVersion.MsBuild package, so $(GitVersion_*) stay empty and these values win
(GitVersion.Tool is for local inspection only). Rationale: GitVersion won't emit
a clean prerelease from a tag (in ContinuousDelivery mode a prerelease tag becomes
`X.Y.Z-<commitcount>`), and we want clean `-preview.N` previews. Release process:
set this to the target version, commit, then tag `v<that-version>` to publish.
MAJOR tracks the compatible Scrutor major (7.x ↔ Scrutor 7.x); MINOR.PATCH is ours. -->
<Version Condition="'$(GitVersion_FullSemVer)' == ''">7.0.1</Version>
<AssemblyVersion Condition="'$(GitVersion_AssemblySemVer)' == ''">7.0.0.0</AssemblyVersion>
<FileVersion Condition="'$(GitVersion_AssemblySemVer)' == ''">7.0.0.0</FileVersion>
<InformationalVersion Condition="'$(GitVersion_InformationalVersion)' == ''">7.0.1</InformationalVersion>
<!-- Use GitVersion values when available -->
<Version Condition="'$(GitVersion_FullSemVer)' != ''">$(GitVersion_FullSemVer)</Version>
<AssemblyVersion Condition="'$(GitVersion_AssemblySemVer)' != ''">$(GitVersion_AssemblySemVer)</AssemblyVersion>
<FileVersion Condition="'$(GitVersion_AssemblySemVer)' != ''">$(GitVersion_AssemblySemVer)</FileVersion>
<InformationalVersion Condition="'$(GitVersion_InformationalVersion)' != ''">$(GitVersion_InformationalVersion)</InformationalVersion>
</PropertyGroup>
</Project>