Based on your description, I was able to successfully reproduce the problem you encountered:
If you want to set BuildInParallel="false" in .csproj, you only need to add <BuildInParallel>false</BuildInParallel>:
<BuildInParallel>false</BuildInParallel>