From 404568d7955cf25579c4c79cf6b3f1c40f08079f Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Wed, 16 Aug 2017 18:23:38 +0200
Subject: [PATCH] Fix pre-build powershell command causing build error

---
 TweetDuck.csproj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/TweetDuck.csproj b/TweetDuck.csproj
index 673c57e4..58df2848 100644
--- a/TweetDuck.csproj
+++ b/TweetDuck.csproj
@@ -407,6 +407,6 @@ if $(ConfigurationName) == Debug (
     <Delete Files="$(TargetDir)widevinecdmadapter.dll" />
   </Target>
   <PropertyGroup>
-    <PreBuildEvent>powershell Get-Process TweetDuck.Browser ^| Where-Object {$_.Path -eq '$(TargetDir)TweetDuck.Browser.exe'} ^| Stop-Process</PreBuildEvent>
+    <PreBuildEvent>powershell Get-Process TweetDuck.Browser -ErrorAction SilentlyContinue ^| Where-Object {$_.Path -eq '$(TargetDir)TweetDuck.Browser.exe'} ^| Stop-Process; Exit 0</PreBuildEvent>
   </PropertyGroup>
 </Project>
\ No newline at end of file