This commit is contained in:
2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using System;
using System.Diagnostics;
namespace Sda.ModelIdUpdater
{
static class Program
{
public static void Main(string[] args)
{
if (args == null)
throw new ArgumentNullException("args");
Updater updater = new Updater();
updater.LogMessageHandler += (sender, e) =>
{
if (e == null
||
string.IsNullOrWhiteSpace(e.Message))
{
return;
}
switch (e.EventType)
{
case TraceEventType.Error:
Trace.TraceError(e.Message);
break;
case TraceEventType.Warning:
Trace.TraceWarning(e.Message);
break;
default:
Trace.TraceInformation(e.Message);
break;
}
};
updater.UpdateIds(args.Length > 0 ? args[0] : "Model.xml");
}
}
}