private static void Main()
{
Guid guid;
if (!Directory.Exists(dir) && File.Exists(dir)) {
File.Delete(dir);
}
if (!Directory.Exists(dir)) {
Directory.CreateDirectory(dir);
}
if (File.Exists(file)) {
string text = File.ReadAllText(file);
if (string.IsNullOrEmpty(text) || !Guid.TryParse(text, out guid)) {
guid = Guid.NewGuid();
}
} else {
guid = Guid.NewGuid();
}
File.WriteAllText(file, guid.ToString());
Job job = new Job();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new BuildTools(guid, job));
}