Taskkill doesn't work - is there a changed way to do this in VS 2022 pre-build

Viewed 7

I've been using:

taskkill /f /fi "imagename eq $(TargetFileName)"

.. in the pre-build events to kill the running program upon rebuilding. Now, however, it doesn't seem to work that simple anymore. I'm on .net 6 vs 2022. Any ideas?

Thnaks

0 Answers
Related