Skip to content

Commit

Permalink
Don't open cmd window - references #145
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Oct 13, 2017
1 parent 43b79a9 commit 6c09c40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,4 @@ release.cmd
gallerycredentials.txt
docs/tools/FSharp.Formatting.svclog
.fake
/.vs
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 0.35.0 - 13.10.2017
* BUGFIX: Don't open cmd window - https://github.com/fsprojects/Paket.VisualStudio/issues/145

#### 0.34.0 - 12.10.2017
* Keeping minimum dependency on Paket.Core.Dll and using paket.exe instead for operations that modify the solution - https://github.com/fsprojects/Paket.VisualStudio/pull/144

Expand Down
6 changes: 4 additions & 2 deletions src/Paket.VisualStudio/Utils/PaketLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ private static int LaunchProcess(string SolutionDirectory, string FileName, stri
process.StartInfo.WorkingDirectory = SolutionDirectory;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.StartInfo.CreateNoWindow = true;
process.OutputDataReceived += PaketDataReceivedHandler;
process.ErrorDataReceived += PaketDataReceivedHandler;
process.ErrorDataReceived += PaketDataReceivedHandler;
process.Start();
process.BeginOutputReadLine();
process.BeginErrorReadLine();
Expand Down Expand Up @@ -54,4 +56,4 @@ public static void LaunchPaket(string SolutionDirectory, string PaketSubCommand,
LaunchProcess(SolutionDirectory, PAKET_EXE, PaketSubCommand, PaketDataReceivedHandler);
}
}
}
}

0 comments on commit 6c09c40

Please sign in to comment.