ce26cbd1f7
rimessa variabile env Rimesso step publish rieliminato step publish Rimesso step builda da script MSBUILD esterno update naming + yaml modifica sintassi publish rimesso build prima di publish altro test sintassi Aggiunta nel file progetto del runtimeidentifier Update nuget generale x fix compilazione publish in build commentata sezione fix nuget x nuovo test compilazione test sintassi alternativa
42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
namespace IOB_MAN
|
|
{
|
|
internal static class Program
|
|
{
|
|
|
|
#region Private Fields
|
|
|
|
#if DEBUG
|
|
private static string appGuid = "1f4132ac-43fd-4547-8101-301f027d54e3";
|
|
#else
|
|
private static string appGuid = "b2e4c0c2-306a-4aa5-bf31-c8684d2229bb";
|
|
#endif
|
|
|
|
|
|
#endregion Private Fields
|
|
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
using (Mutex mutex = new Mutex(false, "Global\\" + appGuid))
|
|
{
|
|
if (!mutex.WaitOne(500, false))
|
|
{
|
|
MessageBox.Show("Impossibile avviare: un altra copia del programma già in esecuzione! ", "EgalWare IOB-MAN", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
|
return;
|
|
}
|
|
|
|
// To customize application configuration such as set high DPI settings or default
|
|
// font, see https://aka.ms/applicationconfiguration.
|
|
ApplicationConfiguration.Initialize();
|
|
// valutare se necessari...
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
|
Application.Run(new BlazorForm());
|
|
}
|
|
}
|
|
}
|
|
} |