refactor: change msbuild_command to be a local variable