Skip to content

Commit

Permalink
Removed Constants as it's no longer needed, reads version now from As…
Browse files Browse the repository at this point in the history
…sembly FileVersion attribute
  • Loading branch information
FransBouma committed Feb 12, 2016
1 parent 13f976c commit b14049b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
35 changes: 0 additions & 35 deletions src/Constants.cs

This file was deleted.

3 changes: 2 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
//////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -87,7 +88,7 @@ private static CliInput ParseInput(string[] args)

private static void DisplayHeader()
{
Console.WriteLine("Docnet v{0}. (c)2016 Frans Bouma", Constants.Version);
Console.WriteLine("Docnet v{0}. (c)2016 Frans Bouma", FileVersionInfo.GetVersionInfo(typeof(Program).Assembly.Location).FileVersion);
Console.WriteLine("Get your copy at: https://github.com/FransBouma/Docnet \n");
}

Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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("0.8.0")]
[assembly: AssemblyFileVersion("0.8.0")]
[assembly: AssemblyVersion("0.8.1.0")]
[assembly: AssemblyFileVersion("0.8.1")]

0 comments on commit b14049b

Please sign in to comment.