static Win32() { ShellBase.LoadModules(); _executablesDirectory = Path.Combine(ResourceDirectory, "windows"); using (var proc = new Process()) { proc.StartInfo = new ProcessStartInfo("cmd") { RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false, CreateNoWindow = true }; TryRun(proc, "node", "--version", @"nodejs\node.exe", out _nodePath, out _nodeIsAvailable); TryRun(proc, "java", "-version", @"jre\bin\java.exe", out _javaPath, out _javaIsAvailable); TryRun(proc, "magick", "-version", @"imageMagick\magick.exe", out _imageMagickPath, out _imageMagickIsAvailable); } }
public CompilerBase() : this(ShellBase.GetShell()) { }
public CompilerBase(ShellBase shell) { Shell = shell; }