24 lines
749 B
C#
24 lines
749 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace Elwig {
|
|
// FIXME remove with .NET 11.0.1
|
|
public static class Program {
|
|
[STAThread]
|
|
public static int Main(string[] args) {
|
|
if (Environment.GetEnvironmentVariable("DOTNET_JITMinOpts") != "1" && Environment.ProcessPath is string exePath) {
|
|
if (Process.Start(new ProcessStartInfo(exePath, args) {
|
|
UseShellExecute = false,
|
|
Environment = { ["DOTNET_JITMinOpts"] = "1" },
|
|
}) != null)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
var app = new App();
|
|
app.InitializeComponent();
|
|
return app.Run();
|
|
}
|
|
}
|
|
}
|