@lonix, In general, we can configure the maximum CPU count at the machine level by setting an environment variable.
You can set the DOTNET_MSBUILD_CLI_OPTIONS environment variables to include the -m option:
On Windows:: Run this command in Command Prompt or PowerShell:
setx DOTNET_MSBUILD_CLI_OPTIONS "-m:3"
This will automatically apply the -m:3 option to every dotnet build invocation.
Hope this approach helps.