public BuildResult ( string output ) : ReverseEngineerResult | ||
output | string | |
return | ReverseEngineerResult |
private async Task <ReverseEngineerResult> GetOutputAsync() { var path = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()) + ".json"; File.WriteAllText(path, options.Write()); var launchPath = DropNetCoreFiles(); var startInfo = new ProcessStartInfo { FileName = "dotnet", Arguments = $"\"{launchPath}\" \"{path}\"", }; var standardOutput = await RunProcessAsync(startInfo); try { File.Delete(path); } catch { // Ignore } return(resultDeserializer.BuildResult(standardOutput)); }
private ReverseEngineerResult GetOutput() { var path = Path.GetTempFileName() + ".json"; File.WriteAllText(path, options.Write()); var launchPath = Path.Combine(Path.GetTempPath(), "efreveng"); var startInfo = new ProcessStartInfo { FileName = Path.Combine(launchPath ?? throw new InvalidOperationException(), GetExeName()), Arguments = "\"" + path + "\"", }; var standardOutput = RunProcess(startInfo); try { File.Delete(path); } catch { } return(resultDeserializer.BuildResult(standardOutput)); }
private async Task <ReverseEngineerResult> GetOutputAsync() { var path = Path.GetTempFileName() + ".json"; File.WriteAllText(path, options.Write()); var launchPath = await DropNetCoreFilesAsync(); var startInfo = new ProcessStartInfo { FileName = Path.Combine(launchPath ?? throw new InvalidOperationException(), GetExeName()), Arguments = "\"" + path + "\"", }; var standardOutput = await RunProcessAsync(startInfo); try { File.Delete(path); } catch { } return(resultDeserializer.BuildResult(standardOutput)); }