Engine engine;
Project project;
ConsoleReportPrinter printer;
-
+#pragma warning disable 169
+ // this does nothing but adds strong reference to Microsoft.Build.Tasks*.dll that we need to load consistently.
+ Microsoft.Build.Tasks.Copy dummy;
+#pragma warning restore
public static void Main (string[] args)
{
MainClass mc = new MainClass ();
bool show_stacktrace = false;
try {
- parameters.ParseArguments (args);
+ try {
+ parameters.ParseArguments (args);
+ } catch {
+ ShowDeprecationNotice ();
+ throw;
+ }
+
+ ShowDeprecationNotice ();
show_stacktrace = (parameters.LoggerVerbosity == LoggerVerbosity.Detailed ||
parameters.LoggerVerbosity == LoggerVerbosity.Diagnostic);
}
}
+
+ void ShowDeprecationNotice ()
+ {
+ if (parameters.LoggerVerbosity != LoggerVerbosity.Minimal && parameters.LoggerVerbosity != LoggerVerbosity.Quiet) {
+ Console.ForegroundColor = ConsoleColor.DarkRed;
+ Console.WriteLine ();
+ Console.WriteLine (">>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<");
+ Console.WriteLine ();
+ Console.ResetColor ();
+ }
+ }
}
// code from mcs/report.cs