commandLine.AppendSwitchIfNotNull ("/out:", OutputAssembly.ItemSpec);
if (Resources != null)
- foreach (ITaskItem item in Resources)
+ foreach (ITaskItem item in Resources) {
+ string logical_name = item.GetMetadata ("LogicalName");
+ if (logical_name.Length > 0)
+ commandLine.AppendSwitchIfNotNull ("/resource:",
+ String.Format ("{0},{1}", item.ItemSpec, logical_name));
+ else
commandLine.AppendSwitchIfNotNull ("/resource:", item.ItemSpec);
+ }
if (Sources != null)
foreach (ITaskItem item in Sources)
[MonoTODO]
protected override bool HandleTaskExecutionErrors ()
{
- return true;
+ if (!Log.HasLoggedErrors && ExitCode != 0)
+ Log.LogError ("Compiler crashed with code: {0}.", ExitCode);
+
+ return ExitCode == 0 && !Log.HasLoggedErrors;
}
[MonoTODO]
get {
if (Bag.Contains ("TargetType")) {
string s = (string) Bag ["TargetType"];
- return s.ToLower ();
+ return s.ToLowerInvariant ();
} else
return null;
}