diff --git a/src/Stratis.VS.SolidityProjectBuildTasks/CompileContracts.cs b/src/Stratis.VS.SolidityProjectBuildTasks/CompileContracts.cs index 7a92408..d02a3e0 100644 --- a/src/Stratis.VS.SolidityProjectBuildTasks/CompileContracts.cs +++ b/src/Stratis.VS.SolidityProjectBuildTasks/CompileContracts.cs @@ -30,7 +30,7 @@ public override bool Execute() UseShellExecute = false, WorkingDirectory = ProjectDir, CreateNoWindow = true, - RedirectStandardOutput = false, + RedirectStandardOutput = true, RedirectStandardInput = true, RedirectStandardError = false, }; @@ -54,7 +54,8 @@ public override bool Execute() } var ser = new Newtonsoft.Json.JsonSerializer(); ser.Serialize(p.StandardInput, i); - p.StandardInput.Write(Environment.NewLine); + p.StandardInput.WriteLine(Environment.NewLine); + p.StandardInput.Close(); Log.LogMessage(MessageImportance.High, p.StandardOutput.ReadToEnd()); return false; }