Skip to content

Commit

Permalink
Add offsets to sync version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
CZEMacLeod committed Apr 15, 2021
1 parent 27d998c commit 4e70727
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@
<None Include="images\*" />
</ItemGroup>

<ItemGroup>
<None Include="version.json" />
</ItemGroup>

</Project>
5 changes: 5 additions & 0 deletions src/MSBuild.SDK.SystemWeb.Templates/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/v3.3.37/src/NerdBank.GitVersioning/version.schema.json",
"inherit": true,
"version": "4.0"
}
3 changes: 3 additions & 0 deletions src/MSBuild.SDK.SystemWeb/MSBuild.SDK.SystemWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageType>MSBuildSdk</PackageType>
</PropertyGroup>
<ItemGroup>
<None Include="version.json" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" />
</ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions src/MSBuild.SDK.SystemWeb/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/v3.3.37/src/NerdBank.GitVersioning/version.schema.json",
"inherit": true,
"version": "4.0",
"buildNumberOffset": 0
}
4 changes: 3 additions & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/v3.3.37/src/NerdBank.GitVersioning/version.schema.json",
"version": "4.0",
"publicReleaseRefSpec": [
"^refs/heads/main$", // we release out of main
Expand All @@ -11,5 +12,6 @@
"buildNumber": {
"enabled": true
}
}
},
"buildNumberOffset": 11
}

0 comments on commit 4e70727

Please sign in to comment.