Skip to content

Commit

Permalink
GitVersion
Browse files Browse the repository at this point in the history
- Use GitVersion to stamp version numbers into assemblies.

https://github.com/GitTools/GitVersion

Use Mainline versioning policy in GitVersion v4.0.0.

- Bump next version to 1.2.1 for easier reference.
  • Loading branch information
jthelin committed Oct 1, 2018
1 parent cc3a82b commit 5fd6111
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
8 changes: 5 additions & 3 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
assembly-versioning-scheme: Major
mode: ContinuousDelivery
next-version: 1.1.8
mode: Mainline
increment: Patch
next-version: 1.2.1
branches:
master:
tag: pre
tag: alpha
prevent-increment-of-merged-branch-version: true
1 change: 1 addition & 0 deletions ServerHost.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{64DBC33D
Build.sh = Build.sh
Clean.cmd = Clean.cmd
documentation\DocFormatter.xsl = documentation\DocFormatter.xsl
GitVersion.yml = GitVersion.yml
nuget-restore.cmd = nuget-restore.cmd
ServerHost.nuspec = ServerHost.nuspec
Test.cmd = Test.cmd
Expand Down
13 changes: 0 additions & 13 deletions ServerHost/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,3 @@

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e9fff8d5-f4c0-483d-aee6-5ff82afd434f")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.1.7.*")]
// [assembly: AssemblyFileVersion("1.0.0.0")]
7 changes: 6 additions & 1 deletion ServerHost/ServerHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
<None Include="ServerHost.snk" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="GitVersionTask">
<Version>4.0.0-beta0014</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="log4net">
<Version>2.0.5</Version>
</PackageReference>
Expand All @@ -78,4 +83,4 @@
<Exec Condition="'$(OS)' != 'Windows_NT'"
Command="xsltproc -o ../documentation/$(MSBuildProjectName).md ../documentation/DocFormatter.xsl $(OutDir)/$(MSBuildProjectName).XML" />
</Target>
</Project>
</Project>

0 comments on commit 5fd6111

Please sign in to comment.