private async void StartLocalServer()
        {
            try
            {
                // Stop old instance
                server?.Dispose();

                await _monoExtension.BuildSolutionAsync();

                using (server = new MonoDebugServer())
                {
                    server.Start();
                    var settings     = UserSettingsManager.Instance.Load();
                    var debugOptions = this._monoExtension.CreateDebugOptions(settings);
                    debugOptions.UserSettings.LastIp = SharedLib.Server.MonoProcess.GetLocalIp().ToString();
                    await _monoExtension.AttachDebugger(debugOptions);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex);
                MessageBox.Show(ex.Message, "MonoRemoteDebugger", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
 public void Dispose()
 {
     server.Dispose();
 }