Longstanding bug.
There are different workarounds.
fmode .bat file
fmode powershell script
Visual Studio dlls
CPU affinity shortcut