2016-08-04 104 views
0

我在Visual Studio 2015中有一個基於Xamarin的解決方案。其中一個項目是一個包含C++代碼的Android本地共享庫。從命令行編譯時未找到Visual Studio 2015 - Clang版本

當我在VS 2015 IDE中構建解決方案時,一切都按預期工作。但是,當我嘗試從命令行構建解決方案時,出現錯誤。

構建命令是:

msbuild mytest.sln /p:Configuration=Release /p:Platform=ARM /t:Rebuild 

我得到的錯誤是: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for Clang_3_8 (Platform Toolset = 'Clang_3_8') cannot be found. To build using the Clang_3_8 build tools, please install Clang_3_8 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".

我的Visual Studio 2015年應用了所有更新。想知道是否有人知道問題可能是什麼。這是路徑問題嗎?問候。

回答

0

原來這是一個路徑問題。請確保使用Program Files - > Visual Studio 2015-> Visual Studio Tools下的開發人員命令提示符鏈接。這個批處理文件設置了正確的路徑,包括叮噹聲。

相關問題