1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00

Added date/time to startup output

This commit is contained in:
Brian Fiete 2020-01-24 11:51:31 -08:00
parent 49122ae6aa
commit fb7745af85

View file

@ -10165,14 +10165,17 @@ namespace IDE
} }
} }
public FileVersionInfo GetVersionInfo() public FileVersionInfo GetVersionInfo(out DateTime exeTime)
{ {
exeTime = default;
if (mVersionInfo == null) if (mVersionInfo == null)
{ {
String exeFilePath = scope .(); String exeFilePath = scope .();
Environment.GetExecutableFilePath(exeFilePath); Environment.GetExecutableFilePath(exeFilePath);
mVersionInfo = new .(); mVersionInfo = new .();
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError(); mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();
} }
return mVersionInfo; return mVersionInfo;
} }
@ -10304,8 +10307,15 @@ namespace IDE
mAutoCompletePanel = new AutoCompletePanel(); mAutoCompletePanel = new AutoCompletePanel();
mAutoCompletePanel.mAutoDelete = false; mAutoCompletePanel.mAutoDelete = false;
GetVersionInfo(); GetVersionInfo(var exeDate);
OutputLine("IDE Started. Version {}.", mVersionInfo.FileVersion); let localExeDate = exeDate.ToLocalTime();
String exeDateStr = scope .();
localExeDate.ToShortDateString(exeDateStr);
exeDateStr.Append(" at ");
localExeDate.ToShortTimeString(exeDateStr);
OutputLine("IDE Started. Version {} built {}.", mVersionInfo.FileVersion, exeDateStr);
/*if (!mRunningTestScript) /*if (!mRunningTestScript)
{ {