New test.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / Csc.cs
index f44311e7a55b4e34c40e584dc9d44d089e93e10f..2b334d88d811a4a3bcd1adf93cf78782a65455b8 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
+#if NET_2_0
+
 using System;
 using System.IO;
 using Microsoft.Build.Framework;
@@ -38,6 +40,7 @@ namespace Microsoft.Build.Tasks {
                {
                }
 
+               [MonoTODO]
                protected internal override void AddResponseFileCommands (CommandLineBuilderExtension commandLine)
                {
                        base.AddResponseFileCommands (commandLine);
@@ -59,9 +62,10 @@ namespace Microsoft.Build.Tasks {
                        //warningNotAsErrors
                }
 
+               [MonoTODO]
                protected override bool CallHostObjectToExecute ()
                {
-                       return true;
+                       throw new NotImplementedException ();
                }
 
                protected override string GenerateFullPathToTool ()
@@ -69,12 +73,10 @@ namespace Microsoft.Build.Tasks {
                        return Path.Combine (ToolPath, ToolName);
                }
 
-               protected override bool InitializeHostObject (out bool appropriateHostObjectExists,
-                                                             out bool continueBuild)
+               [MonoTODO]
+               protected override HostObjectInitializationStatus InitializeHostObject ()
                {
-                       appropriateHostObjectExists = true;
-                       continueBuild = true;
-                       return true;
+                       return HostObjectInitializationStatus.NoActionReturnSuccess;
                }
 
                public bool AllowUnsafeBlocks {
@@ -87,9 +89,9 @@ namespace Microsoft.Build.Tasks {
                        set { Bag ["BaseAddress"] = value; }
                }
 
-               public bool CheckForOverflowUnderFlow {
-                       get { return GetBoolParameterWithDefault ("CheckForOverflowUnderFlow", false); }
-                       set { Bag ["CheckForOverflowUnderFlow"] = value; }
+               public bool CheckForOverflowUnderflow {
+                       get { return GetBoolParameterWithDefault ("CheckForOverflowUnderflow", false); }
+                       set { Bag ["CheckForOverflowUnderflow"] = value; }
                }
 
                public string DisabledWarnings {
@@ -126,6 +128,11 @@ namespace Microsoft.Build.Tasks {
                        get { return GetBoolParameterWithDefault ("NoStandardLib", false); }
                        set { Bag ["NoStandardLib"] = value; }
                }
+               
+               public string PdbFile {
+                       get { return (string) Bag ["PdbFile"]; }
+                       set { Bag ["PdbFile"] = value; }
+               }
 
                public string Platform {
                        get { return (string) Bag ["Platform"]; }
@@ -133,7 +140,7 @@ namespace Microsoft.Build.Tasks {
                }
 
                protected override string ToolName {
-                       get { return "mcs"; }
+                       get { return "gmcs"; }
                }
 
                public bool UseHostCompilerIfAvailable {
@@ -157,3 +164,5 @@ namespace Microsoft.Build.Tasks {
                }
        }
 }
+
+#endif