#if NET_2_0
using System;
+using System.Collections;
using System.IO;
using System.Text;
using Microsoft.Build.Framework;
{
}
+ [MonoTODO]
protected internal override void AddCommandLineCommands (
CommandLineBuilderExtension commandLine)
{
}
+ [MonoTODO]
protected internal override void AddResponseFileCommands (
CommandLineBuilderExtension commandLine)
{
commandLine.AppendFileNameIfNotNull (item.ItemSpec);
}
}
- commandLine.AppendSwitchIfNotNull ("/target:", TargetType);
+ if (TargetType != null)
+ commandLine.AppendSwitchIfNotNull ("/target:", TargetType);
if (TreatWarningsAsErrors)
commandLine.AppendSwitch ("/warnaserror");
commandLine.AppendSwitchIfNotNull ("/win32icon:", Win32Icon);
commandLine.AppendSwitchIfNotNull ("/win32res:", Win32Resource);
}
+ [MonoTODO]
protected bool CheckAllReferencesExistOnDisk ()
{
foreach (ITaskItem item in (ITaskItem[])Bag ["References"])
return true;
}
+ [MonoTODO]
protected void CheckHostObjectSupport (string parameterName,
bool resultFromHostObjectSetOperation)
{
}
+ [MonoTODO]
protected override bool HandleTaskExecutionErrors ()
{
return true;
protected bool ListHasNoDuplicateItems (ITaskItem[] itemList,
string parameterName)
{
+ Hashtable items = new Hashtable ();
+
+ foreach (ITaskItem item in itemList) {
+ if (items.Contains (item.ItemSpec))
+ items.Add (item.ItemSpec, null);
+ else
+ return false;
+ }
+
return true;
}
+ [MonoTODO]
protected override bool ValidateParameters ()
{
return true;
get { return Console.Error.Encoding; }
}
+ // FIXME: hack to get build of hello world working
public string TargetType {
- get { return (string) Bag ["TargetType"]; }
+ get {
+ return (Bag.Contains ("TargetType")) ? (((string) Bag ["TargetType"]).ToLower ()) : null;
+ }
set { Bag ["TargetType"] = value; }
}