Skip to content

Commit

Permalink
DotNet build server shutdown
Browse files Browse the repository at this point in the history
Was keeping MO2 from shutting down properly.
dotnet/sdk#9487
  • Loading branch information
Noggog committed Nov 15, 2020
1 parent be55df0 commit 06c0fbb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Synthesis.Bethesda.GUI/ViewModels/MainVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
using System.IO;
using Synthesis.Bethesda.Execution;
using Mutagen.Bethesda.Synthesis;
using Noggog.Utility;
using System.Diagnostics;

namespace Synthesis.Bethesda.GUI
{
Expand Down Expand Up @@ -207,5 +209,13 @@ public async Task<(string? MutagenVersion, string? SynthesisVersion)> GetLatestV
return (null, null);
}
}

public override void Dispose()
{
base.Dispose();
using var process = ProcessWrapper.Start(
new ProcessStartInfo("dotnet", $"build-server shutdown"));
process.Start().Wait();
}
}
}

0 comments on commit 06c0fbb

Please sign in to comment.