BaseOutputPath: 指定输出文件的基本路径。如果设置了该属性,MSBuild 将使用 OutputPath = $(BaseOutputPath)\$(Configuration)\
我尝试使用 MSBuild 项目属性 BaseOutputPath 而不是为每个配置和平台组合指定 OutputPath,但是在编译时 Visual Studio 报错:
该项目未设置 OutputPath 属性。请确保您已指定有效的 Configuration/Platform 组合。
我将 <BaseOutputPath>..\Binaries</BaseOutputPath>
放在第一个无条件的 <ProjectProperty>
中。
我是否使用不正确,还是这是 Visual Studio 中已知的 bug?