BuildResult() публичный Метод

public BuildResult ( string output ) : ReverseEngineerResult
output string
Результат ReverseEngineerResult
Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }