3
我有一個正在編譯C#和C++項目混合的MSBuild .proj文件。如何爲由msbuild構建的C++項目設置輸出目錄?
C#項目編譯輸出(.exe/.dlls)到我指定的OutputPath,但是當我爲C++項目指定OutputPath(調用vcbuild.exe)時,OutputPath被忽略,而是進入指定的目錄在.vcproj的屬性頁中。
這裏是我的MSBuild任務:
<MSBuild Projects="$(SourceFolder)\$(NativeSolutionName)"
Targets="$(BuildTargets)"
Properties="Configuration=$(Configuration);PlatformName=Win32;OutputPath=$(ToolsOutputDir)">
</MSBuild>
我怎麼可以指定C++輸出文件應到同一目錄C#輸出文件$(ToolsOutputDir)?