namespace Microsoft.Build.Tasks {
public class AL : ToolTaskExtension {
- Process alProcess;
-
public AL ()
{
}
public override bool Execute ()
{
- CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();
- AddResponseFileCommands (clbe);
-
- alProcess = new Process ();
- alProcess.StartInfo.Arguments = clbe.ToString ();
- alProcess.StartInfo.FileName = GenerateFullPathToTool ();
- alProcess.Start ();
- alProcess.WaitForExit ();
- return true;
+ return base.Execute ();
}
protected override string GenerateFullPathToTool ()
{
- return Path.Combine (ToolPath, ToolName);
+ if (!string.IsNullOrEmpty (ToolPath))
+ return Path.Combine (ToolPath, ToolExe);
+ return ToolLocationHelper.GetPathToDotNetFrameworkFile (ToolExe, TargetDotNetFrameworkVersion.VersionLatest);
}
public string AlgorithmId {
}
protected override string ToolName {
- get {
- return "al";
- }
+ get { return "al.exe"; }
}
public string Trademark {