Files
Kansan/KanSan/ProgrammHashVersion.cs
2020-02-20 21:42:24 +01:00

28 lines
644 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
namespace KanSan
{
public static class ProgrammHashVersion
{
public static string GIT_HASH
{
get
{
string gitVersion;
using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("KanSan.version.txt"))
using (StreamReader reader = new StreamReader(stream))
{
gitVersion = reader.ReadToEnd();
}
return gitVersion;
}
}
}
}