mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
Merge pull request #78 from microsoft/user/ryanbod/fix_killtask_warning
Ignoring 128 errors from taskkill
This commit is contained in:
@@ -2,7 +2,13 @@
|
|||||||
|
|
||||||
<Target Name="KillPowerLauncher" BeforeTargets="PreBuildEvent;BeforeClean">
|
<Target Name="KillPowerLauncher" BeforeTargets="PreBuildEvent;BeforeClean">
|
||||||
<Message Text="Killing process 'PowerLauncher.exe'" Importance="normal" ContinueOnError="true" />
|
<Message Text="Killing process 'PowerLauncher.exe'" Importance="normal" ContinueOnError="true" />
|
||||||
<Exec Command="taskkill /f /im PowerLauncher.exe" ContinueOnError="true"/>
|
<Exec Command="taskkill /F /IM PowerLauncher.exe"
|
||||||
|
IgnoreExitCode="true"
|
||||||
|
IgnoreStandardErrorWarningFormat="true">
|
||||||
|
<Output TaskParameter="ExitCode" PropertyName="ErrorCode"/>
|
||||||
|
</Exec>
|
||||||
|
<Error Text="Cannot kill PowerLauncher.exe process." Condition="$(ErrorCode) == 1"/>
|
||||||
|
<Message Text="Process PowerLauncher.exe does not exist." Condition="$(ErrorCode) == 128"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user