{
this.TaskResources = taskResources;
this.HelpKeywordPrefix = helpKeywordPrefix;
- this.toolPath = MonoLocationHelper.GetBinDir ();
this.responseFileEncoding = Encoding.UTF8;
this.timeout = Int32.MaxValue;
}
pinfo.WorkingDirectory = GetWorkingDirectory () ?? Environment.CurrentDirectory;
pinfo.UseShellExecute = false;
+ pinfo.CreateNoWindow = true;
pinfo.RedirectStandardOutput = true;
pinfo.RedirectStandardError = true;
public virtual string ToolExe
{
get {
- if (toolExe == null)
+ if (string.IsNullOrEmpty (toolExe))
return ToolName;
else
return toolExe;
}
- set {
- if (!String.IsNullOrEmpty (value))
- toolExe = value;
- }
+ set { toolExe = value; }
}
protected abstract string ToolName
public string ToolPath
{
get { return toolPath; }
- set {
- if (!String.IsNullOrEmpty (value))
- toolPath = value;
- }
+ set { toolPath = value; }
}
// Keep in sync with mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs