diff --git a/src/Constants.cs b/src/Constants.cs deleted file mode 100644 index 15fcb60..0000000 --- a/src/Constants.cs +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////////////////// -// DocNet is licensed under the MIT License (MIT) -// Copyright(c) 2016 Frans Bouma -// Get your copy at: https://github.com/FransBouma/DocNet -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in the -// Software without restriction, including without limitation the rights to use, copy, -// modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, -// and to permit persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included in all copies -// or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE -// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -////////////////////////////////////////////////////////////////////////////////////////////// -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Docnet -{ - public class Constants - { - public const string Version = "0.8.1"; - } -} diff --git a/src/Program.cs b/src/Program.cs index fc00c3d..659982b 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -22,6 +22,7 @@ ////////////////////////////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; +using System.Diagnostics; using System.IO; using System.Linq; using System.Text; @@ -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"); } diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index a7ece98..94bb2c5 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -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")]