Skip to content

Commit 940b01d

Browse files
committed
Added GitVersioning for project versioning
- Added Nerdbank.GitVersioning to Promact.Caching.csproj, including it as a package reference with version 3.6.139. This addition aids in version management using git, ensuring assets from runtime, build, native, contentfiles, analyzers, and buildtransitive are included and marked as private. - Introduced a version.json file, adhering to the Nerdbank.GitVersioning's schema, to manage the project's versioning through git history, starting at version 1.0.0.
1 parent a1807b2 commit 940b01d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Promact.Caching/Promact.Caching/Promact.Caching.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
1313
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
1414
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="8.0.6" />
15+
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.139">
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
</PackageReference>
1519
<PackageReference Include="Promact.Core" Version="1.0.0.3" />
1620
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
1721
<PackageReference Include="xxHash.Core" Version="2.0.1" />

version.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "1.0.0"
4+
}

0 commit comments

Comments
 (0)