Files
Crapfixer/CFixer/Program.cs
T

33 lines
1002 B
C#
Raw Normal View History

using System;
2025-05-10 14:13:15 +02:00
using System.Reflection;
using System.Windows.Forms;
2025-05-21 17:11:38 +02:00
namespace CrapFixer
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
2025-05-10 14:13:15 +02:00
private static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
2025-05-10 14:13:15 +02:00
/// <summary>
/// Retrieves the version of the app
/// </summary>
/// <returns>The application version in the format "major.minor.build"</returns>
public static string GetAppVersion()
{
// Get the version of the current executing assembly
Version version = Assembly.GetExecutingAssembly().GetName().Version;
// Return the version in the format "major.minor.build"
return $"{version.Major}.{version.Minor}.{version.Build}";
}
}
2025-05-10 14:13:15 +02:00
}