-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
27 lines (26 loc) · 1.28 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Script_Builder
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main(string[] args)
{
if (Environment.Version.Major < 4 || Environment.Version.MajorRevision < 0 || Environment.Version.Build < 30319 || Environment.Version.Revision < 42000)
{
//MessageBox.Show("Es ist nicht die richtige .Net-Framework Version Installiert.\r\n\r\nInstalliert: " + Environment.Version.ToString() + "\r\nBenötigt: 2.0.50727.3053 (Framework 3.5 SP1)", "Falsche .Net-Framework Version", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show("You don't have the correct .Net-Framework version installed.\r\n\r\nInstalled version: " + Environment.Version.ToString() + "\r\nRequired version: 4.0.30319.42000 (Framework 4.8)", "Wrong .Net-Framework Version", MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(-1);
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new mainForm(args));
}
}
}