Skip to content

Commit

Permalink
Include launcher version in sidecar XML files.
Browse files Browse the repository at this point in the history
  • Loading branch information
num0005 committed Sep 6, 2022
1 parent 4835fa6 commit f2b6c50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using System.Xml;
using System.Xml.Linq;
using System.Threading;
using System.Reflection;

namespace ToolkitLauncher
{
Expand Down Expand Up @@ -2130,10 +2131,13 @@ private XElement WriteHeader()
{
XElement header;

string version = Assembly.GetEntryAssembly()
.GetCustomAttribute<AssemblyFileVersionAttribute>().Version;

header = new XElement("Header",
new XElement("MainRev", "0"),
new XElement("PointRev", "6"),
new XElement("Description", "Created By Osoyoos SideCar Gen v1.0"),
new XElement("Description", $"Created By Osoyoos SideCar Gen v1.0 ({version})"),
new XElement("Created", DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")), // Long live ISO 8601!
new XElement("By", Environment.UserName),
new XElement("DirectoryType", "TAE.Shared.NWOAssetDirectory"),
Expand Down

0 comments on commit f2b6c50

Please sign in to comment.