#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
780 B

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Microsoft.Build.Tasks;
namespace FSharp.Build.Tasks
{
/// <summary>
/// Tasks that determines if the F# compiler is installed.
/// </summary>
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;
}
}
}