// // // // // $Revision$ // using System; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.Build.Tasks; namespace FSharp.Build.Tasks { /// /// Tasks that determines if the F# compiler is installed. /// public sealed class IsFscInstalled : Task { bool installed; [Output] public bool IsInstalled { get { return installed; } set { installed = value; } } public override bool Execute() { if (FscToolLocationHelper.GetPathToTool() != null) { installed = true; } return true; } } }