public static class ErrorUtilities {
static string[] version = {
- String.Format ("XBuild Engine Version {0}", Consts.MonoVersion),
+ String.Format ("MSBuild Engine Version {0}", Consts.MonoVersion),
String.Format ("Mono, Version {0}", Consts.MonoVersion),
- "Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.",
+ "Copyright (C) Mono Project Contributors, 2008-2013.",
};
static public void ShowUsage ()
{
Display (version);
- Console.WriteLine ("xbuild [options] [project-file]");
+ Console.WriteLine ("msbuild [options] [project-file]");
Console.WriteLine (
- " /version Show the xbuild version\n" +
+ " /version Show the msbuild version\n" +
" /noconsolelogger Disable the default console logger\n" +
" /target:T1[,TN] List of targets to build\n" +
" /property:Name=Value\n" +
var projectInstance = new ProjectInstance (project, parameters.Properties, parameters.ToolsVersion, project_collection);
- result = projectInstance.Build (parameters.Targets, parameters.Loggers);
+ result = projectInstance.Build (parameters.Targets.Length > 0 ? parameters.Targets : null, parameters.Loggers.Count > 0 ? parameters.Loggers : project_collection.Loggers);
//result = project_collection.BuildProjectFile (projectFile, parameters.Targets, null, null, BuildSettings.None, parameters.ToolsVersion);
}
responseFile = Path.Combine (
Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location),
- "xbuild.rsp");
+ "msbuild.rsp");
}
public void ParseArguments (string[] args)
var t = p.AddTarget ("ValidateSolutionConfiguration");
var task = t.AddTask ("Warning");
task.SetParameter ("Text", "On windows, an environment variable 'Platform' is set to MCD sometimes, and this overrides the Platform property" +
- " for xbuild, which could be an invalid Platform for this solution file. And so you are getting the following error." +
+ " for Mono msbuild, which could be an invalid Platform for this solution file. And so you are getting the following error." +
" You could override it by either setting the environment variable to nothing, as\n" +
" set Platform=\n" +
"Or explicity specify its value on the command line, as\n" +
- " xbuild Foo.sln /p:Platform=Release");
+ " msbuild Foo.sln /p:Platform=Release");
task.Condition = "('$(CurrentSolutionConfigurationContents)' == '') and ('$(SkipInvalidConfigurations)' != 'true')" +
" and '$(Platform)' == 'MCD' and '$(OS)' == 'Windows_NT'";