Git hash wird angezeigt und gespeichert

This commit is contained in:
Husky
2020-02-20 21:42:24 +01:00
parent 954ffb4bc8
commit 183646b4da
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
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;
}
}
}
}