28 lines
644 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|