Skip to content

Commit

Permalink
re-add gitversion (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Mar 8, 2024
1 parent 31961a6 commit fcb67ae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directory.build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project>
<PropertyGroup>
<Version>3.0.0-beta.1</Version>
<LangVersion>latest</LangVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand All @@ -12,6 +11,7 @@
</PropertyGroup>
<ItemGroup>
<Using Include="System.ReadOnlySpan&lt;System.Char&gt;" Alias="CharSpan" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
</ItemGroup>
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down
1 change: 1 addition & 0 deletions src/Humanizer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
global.json = global.json
..\readme.md = ..\readme.md
..\release_notes.md = ..\release_notes.md
..\version.json = ..\version.json
.editorconfig = .editorconfig
EndProjectSection
EndProject
Expand Down
10 changes: 10 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "3.0",
"publicReleaseRefSpec": [
"^refs/heads/main$", // we release out of main
"^refs/heads/rel/v\\d+\\.\\d+" // we also release branches starting with rel/vN.N
],
"nugetPackageVersion":{
"semVer": 2
}
}

0 comments on commit fcb67ae

Please sign in to comment.