static void Main() { CrowIDE win = new CrowIDE(); MainWin = win; win.Run(30); }
static void start() { #if NET472 var nativeSharedMethod = typeof(Microsoft.Build.Construction.SolutionFile).Assembly.GetType("Microsoft.Build.Shared.NativeMethodsShared"); var isMonoField = nativeSharedMethod.GetField("_isMono", BindingFlags.Static | BindingFlags.NonPublic); isMonoField.SetValue(null, true); Environment.SetEnvironmentVariable("MSBUILD_EXE_PATH", Path.Combine(msbuildRoot, "MSBuild.dll")); #endif Environment.SetEnvironmentVariable("MSBUILD_NUGET_PATH", "/home/jp/.nuget/packages"); Environment.SetEnvironmentVariable("FrameworkPathOverride", "/usr/lib/mono/4.5/"); using (CrowIDE app = new CrowIDE()) { app.Run(); app.saveWinConfigs(); } }