Skip to content

Commit

Permalink
Fix build error this time.. honest
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Mar 12, 2024
1 parent cc3fb8d commit 62d080a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tools/MonoGame.Content.Builder/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// file 'LICENSE.txt', which is part of this source code package.

using System;
using System.Diagnostics;
using System.Threading;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -47,9 +49,9 @@ static int Main(string[] args)
}
if (content.WaitForDebuggerToAttach)
{
var currentProcess = System.Diagnostics.Process.GetCurrentProcess();
var currentProcess = Process.GetCurrentProcess();
Console.WriteLine($"Waiting for debugger to attach ({currentProcess.MainModule.FileName} PID {currentProcess.Id}). Press any key to continue without debugger.");
while (!System.Diagnostics.Debugger.IsAttached) {
while (!Debugger.IsAttached) {
if (Console.KeyAvailable) {
break;
}
Expand Down

0 comments on commit 62d080a

Please sign in to comment.