Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public CompilerBase() : this(ShellBase.GetShell())
 {
 }
Exemple #3
0
 public CompilerBase(ShellBase shell)
 {
     Shell = shell;
 }