Skip to content

Commit

Permalink
Merge pull request #82 from dorssel/gitversion
Browse files Browse the repository at this point in the history
Refactor GitVersion
  • Loading branch information
dorssel authored Dec 23, 2024
2 parents 770d90d + 334517a commit 20e2e62
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
"trx2junit"
],
"rollForward": false
},
"gitversion.tool": {
"version": "6.1.0",
"commands": [
"dotnet-gitversion"
],
"rollForward": false
}
}
}
5 changes: 4 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ SPDX-License-Identifier: MIT
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dorssel.GitVersion.MsBuild" PrivateAssets="all" />
</ItemGroup>

<Target Name="SetCopyright" AfterTargets="GetVersion">
<PropertyGroup>
<!-- For deterministic builds, use the commit year as the copyright year. -->
Expand All @@ -65,7 +69,6 @@ SPDX-License-Identifier: MIT
<Target Name="SetPackageVersion" AfterTargets="GetVersion">
<PropertyGroup>
<PackageVersion>$(GitVersion_MajorMinorPatch)</PackageVersion>
<PackageVersion Condition=" '$(GitVersion_MajorMinorPatch)' == '' ">0.9.99</PackageVersion>
</PropertyGroup>
</Target>

Expand Down
13 changes: 0 additions & 13 deletions Directory.Build.targets

This file was deleted.

2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SPDX-License-Identifier: MIT
<Project>
<ItemGroup>
<!-- all -->
<PackageVersion Include="GitVersion.MsBuild" Version="6.0.5" />
<PackageVersion Include="Dorssel.GitVersion.MsBuild" Version="1.1.0" />
<!-- SqliteTimestamp -->
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
<!-- unit tests -->
Expand Down
1 change: 0 additions & 1 deletion dotnet-ef-sqlite-timestamp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.gitattributes = .gitattributes
.gitignore = .gitignore
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
Directory.Packages.props = Directory.Packages.props
.config\dotnet-tools.json = .config\dotnet-tools.json
GitVersion.yml = GitVersion.yml
Expand Down

0 comments on commit 20e2e62

Please sign in to comment.