result = BuildProjectFileInternal (projectFile, targetNames, globalProperties, targetOutputs, buildFlags, toolsVersion);
return result;
} catch (InvalidProjectFileException ie) {
- this.LogError (projectFile, ie.Message);
+ this.LogErrorWithFilename (projectFile, ie.Message);
this.LogMessage (MessageImportance.Low, String.Format ("{0}: {1}", projectFile, ie.ToString ()));
return false;
} catch (Exception e) {
- this.LogError (projectFile, e.Message);
+ this.LogErrorWithFilename (projectFile, e.Message);
this.LogMessage (MessageImportance.Low, String.Format ("{0}: {1}", projectFile, e.ToString ()));
return false;
} finally {
public static void LogError (this Engine engine, string message,
params object[] messageArgs)
{
- engine.LogError (null, message, messageArgs);
+ engine.LogErrorWithFilename (null, message, messageArgs);
}
- public static void LogError (this Engine engine, string filename, string message,
+ public static void LogErrorWithFilename (this Engine engine, string filename, string message,
params object[] messageArgs)
{
if (message == null)