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:
parent
49122ae6aa
commit
fb7745af85
1 changed files with 13 additions and 3 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue