Skip to content

Commit

Permalink
Added Nerdbank Gitversioning mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
EluciusFTW committed Dec 16, 2023
1 parent e64bfe1 commit 922199f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ benchmarks/
*.ncrunchproject
*.ncrunchsolution
*.log.*
*.nupkg
*.snupkg

.ionide/

Expand Down
9 changes: 6 additions & 3 deletions src/CardGames.Core.French/CardGames.Core.French.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>2.0.0</Version>
<Authors>Guy Buss</Authors>
<Copyright>Copyright (c) Guy Buss 2022-2023</Copyright>

Expand All @@ -21,7 +20,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EluciusFTW.CardGames.Core" Version="1.0.0" />
<PackageReference Include="EluciusFTW.CardGames.Core" Version="2.0.0" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
11 changes: 9 additions & 2 deletions src/CardGames.Core/CardGames.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>1.0.0</Version>
<Version>2.0.0</Version>
<Authors>Guy Buss</Authors>
<Copyright>Copyright (c) Guy Buss 2022</Copyright>

Expand All @@ -20,4 +20,11 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
8 changes: 8 additions & 0 deletions src/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "2.0",
"publicReleaseRefSpec": [ "^refs/heads/main$" ],
"cloudBuild": {
"setVersionVariables": true
}
}

0 comments on commit 922199f

Please sign in to comment.