PowerToys/src/modules/launcher/Directory.Build.targets
Arjun Balgovind 5471735419
Fix double compile issue for Launcher and Settings (#2759)
* Fix double compile issue

* Removed debugging code

* added prebuild event

* Updated output folders
2020-05-08 09:07:18 -07:00

13 lines
641 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 &quot;IMAGENAME eq PowerLauncher.exe&quot; 2&gt;NUL | find /I /N &quot;PowerLauncher.exe&quot;&gt;NUL &#xD;&#xA; if %25ERRORLEVEL%25==0 ( taskkill /f /im PowerLauncher.exe )"
IgnoreExitCode="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode"/>
</Exec>
</Target>
<Target Name="IncrementalClean" />
</Project>