如何使用 MSBuild 构建项目?

How to build project using MSBuild?

我需要在构建项目 A 之前使用 MSBuild 构建项目 B。

我尝试在项目 A 预构建命令行中编写 "D:\Visual Studio\IDE\MSBuild\Current\Bin\MSBuild.exe" $(SolutionDir)\FeedBack.App\FeedBack.App.csproj -property:Configuration=Debug,但在构建它之前我遇到了不同的错误。

问题: 我需要在命令中更改什么?

问题是,我没有将 msbuild 文件的路径作为 Windows 属性中的环境变量。