我有一个 MSBuild .proj 文件,它正在编译 C# 和 C++ 项目的混合体。
C# 项目将输出 (.exe/.dlls) 编译到我指定的 OutputPath,但是当我为 C++ 项目(调用 vcbuild.exe)指定 OutputPath 时,OutputPath 被忽略,而是进入属性页中指定的目录对于 .vcproj。
这是我的 MSBuild 任务:
<MSBuild Projects="$(SourceFolder)\$(NativeSolutionName)"
Targets="$(BuildTargets)"
Properties="Configuration=$(Configuration);PlatformName=Win32;OutputPath=$(ToolsOutputDir)">
</MSBuild>
Run Code Online (Sandbox Code Playgroud)
如何指定 C++ 输出文件应与 C# 输出文件 $(ToolsOutputDir) 位于同一目录?
msbuild ×1