Browse Source

Removed Constants as it's no longer needed, reads version now from Assembly FileVersion attribute

tags/0.8.1
Frans Bouma 10 years ago
parent
commit
b14049bb87
3 changed files with 4 additions and 38 deletions
  1. +0
    -35
      src/Constants.cs
  2. +2
    -1
      src/Program.cs
  3. +2
    -2
      src/Properties/AssemblyInfo.cs

+ 0
- 35
src/Constants.cs View File

@@ -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";
}
}

+ 2
- 1
src/Program.cs View File

@@ -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 @@ namespace Docnet

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");
}



+ 2
- 2
src/Properties/AssemblyInfo.cs View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 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")]

Loading…
Cancel
Save