Skip to content

Commit

Permalink
Fixed MGCB not cleaning empty projects
Browse files Browse the repository at this point in the history
-Added an error message if the debugger is not available on a Mono platform
  • Loading branch information
tdeeb committed Jan 2, 2019
1 parent faea8a6 commit 3a21ac2
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions Tools/MGCB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,28 @@ static int Main(string[] args)
System.Diagnostics.Debugger.Launch();
} catch (NotImplementedException) {
// not implemented under Mono
Console.Error.WriteLine("The debugger is not implemented under Mono and thus is not supported on your platform.");
}
}

if (content.HasWork)
{
// Print a startup message.
var buildStarted = DateTime.Now;
if (!content.Quiet)
Console.WriteLine("Build started {0}\n", buildStarted);

// Let the content build.
int successCount, errorCount;
content.Build(out successCount, out errorCount);
// Print a startup message.
var buildStarted = DateTime.Now;
if (!content.Quiet)
Console.WriteLine("Build started {0}\n", buildStarted);

// Print the finishing info.
if (!content.Quiet)
{
Console.WriteLine("\nBuild {0} succeeded, {1} failed.\n", successCount, errorCount);
Console.WriteLine("Time elapsed {0:hh\\:mm\\:ss\\.ff}.", DateTime.Now - buildStarted);
}
// Let the content build.
int successCount, errorCount;
content.Build(out successCount, out errorCount);

// Return the error count.
return errorCount;
// Print the finishing info.
if (!content.Quiet)
{
Console.WriteLine("\nBuild {0} succeeded, {1} failed.\n", successCount, errorCount);
Console.WriteLine("Time elapsed {0:hh\\:mm\\:ss\\.ff}.", DateTime.Now - buildStarted);
}

return 0;
// Return the error count.
return errorCount;
}
}
}

0 comments on commit 3a21ac2

Please sign in to comment.