New test.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / AL.cs
index 967b66f97034162c5688ad3487d804a1ee6a5f22..b063aaf5e41d9a510bdaf20dc1d80d843f17be0b 100644 (file)
 // 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.Diagnostics;
 using System.IO;
 using Microsoft.Build.Framework;
 using Microsoft.Build.Utilities;
+using Mono.XBuild.Utilities;
 
 namespace Microsoft.Build.Tasks {
        public class AL : ToolTaskExtension {
@@ -40,6 +43,7 @@ namespace Microsoft.Build.Tasks {
                {
                }
                
+               [MonoTODO]
                protected internal override void AddResponseFileCommands (
                                                 CommandLineBuilderExtension commandLine)
                {
@@ -100,8 +104,7 @@ namespace Microsoft.Build.Tasks {
 
                protected override string GenerateFullPathToTool ()
                {
-                       string binDir = ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version11);
-                       return Path.Combine (binDir, ToolName);
+                       return Path.Combine (ToolPath, ToolName);
                }
 
                public string AlgorithmId {
@@ -190,6 +193,7 @@ namespace Microsoft.Build.Tasks {
                }
 
                [Required]
+               [Output]
                public ITaskItem OutputAssembly {
                        get { return (ITaskItem) Bag ["OutputAssembly"]; }
                        set { Bag ["OutputAssembly"] = value; }
@@ -262,3 +266,5 @@ namespace Microsoft.Build.Tasks {
                }
        }
 }
+
+#endif
\ No newline at end of file