Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@@ -51,9 +51,10 @@ namespace Mono.XBuild.CommandLine {
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 ();
@@ -74,12 +75,20 @@ namespace Mono.XBuild.CommandLine {
bool show_stacktrace = false;
try {
parameters.ParseArguments (args);
try {
parameters.ParseArguments (args);
} catch {
ShowDeprecationNotice ();
throw;
}
show_stacktrace = (parameters.LoggerVerbosity == LoggerVerbosity.Detailed ||
parameters.LoggerVerbosity == LoggerVerbosity.Diagnostic);
if (!parameters.NoLogo)
if (!parameters.NoLogo) {
ShowDeprecationNotice ();
ErrorUtilities.ShowVersion (false);
}
engine = Engine.GlobalEngine;
if (!String.IsNullOrEmpty (parameters.ToolsVersion)) {
@@ -164,6 +173,15 @@ namespace Mono.XBuild.CommandLine {
}
}
void ShowDeprecationNotice ()
{
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