2016-08-04 91 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下的开发人员命令提示符链接。这个批处理文件设置了正确的路径,包括叮当声。

相关问题