* CallTarget.cs: Copy all items from target to TargetOutputs.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / GetFrameworkPath.cs
index f991741b2b0d2a360736b7f2ef19f953e1579d7c..3e03be0fbc93ac2a71a7d28c85406776e6a4d39f 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.
 
-using Microsoft.Build.Tasks;
+#if NET_2_0
+
+using Microsoft.Build.Framework;
+using Microsoft.Build.Utilities;
 
 namespace Microsoft.Build.Tasks {
        public class GetFrameworkPath : TaskExtension {
@@ -38,10 +41,11 @@ namespace Microsoft.Build.Tasks {
 
                public override bool Execute ()
                {
-                       path = "/usr/local/bin";
+                       path = ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version20);
                        return true;
                }
 
+               [Output]
                public string Path {
                        get {
                                return path;
@@ -52,3 +56,5 @@ namespace Microsoft.Build.Tasks {
                }
        }
 }
+
+#endif