mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-22 08:02:24 +08:00
11 lines
603 B
XML
11 lines
603 B
XML
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<Target Name="KillPowerLauncher" BeforeTargets="PreBuildEvent;BeforeClean">
|
|
<Message Text="Killing process 'PowerLauncher.exe'" Importance="normal" ContinueOnError="false" />
|
|
<Exec Command="tasklist /FI "IMAGENAME eq PowerLauncher.exe" 2>NUL | find /I /N "PowerLauncher.exe">NUL 
 if %25ERRORLEVEL%25==0 ( taskkill /f /im PowerLauncher.exe )"
|
|
IgnoreExitCode="true">
|
|
<Output TaskParameter="ExitCode" PropertyName="ErrorCode"/>
|
|
</Exec>
|
|
</Target>
|
|
|
|
</Project> |