[英]Visual Studio 2015: how to build ATL projects targeting Visual C++ v120
I am using Visual Studio 2015 Community Edition. 我正在使用Visual Studio 2015社区版。
In VS2015 installer, selecting Common Tools and MFC Components under the Visual C++ node, I am able to build ATL based projects. 在VS2015安装程序中,选择“ Visual C ++”节点下的“通用工具”和“ MFC组件”,即可构建基于ATL的项目。
Selecting Tools and Windows SDKs, under Windows 8.1 and Windows Phone Tools node, I am able to build MFC projects based on Platform Toolset v120, that is Visual Studio 2013. 选择“工具”和“ Windows SDK”,在Windows 8.1和“ Windows Phone工具”节点下,我可以基于Platform Toolset v120(即Visual Studio 2013)构建MFC项目。
Now I would like to build an existing ATL project, relatively large, originally built in Visual Studio 2013. When I set Platform Toolset = 'v120'
in the ATL project, the compiler is unable to find the ATL headers. 现在,我想构建一个现有的ATL项目,该项目相对较大,最初是在Visual Studio 2013中构建的。当我在ATL项目中设置Platform Toolset = 'v120'
时,编译器无法找到ATL标头。
Is it possible to install them? 是否可以安装它们? Do I have to install both VS2013 and VS2015? 我是否必须同时安装VS2013和VS2015?
You do need to install the earlier version of Visual Studio if you want to use its compiler toolchain. 如果要使用Visual Studio的编译器工具链,则需要安装早期版本的Visual Studio。 You can also open a developer command prompt to select the compiler version and use msbuild to build the target using that specific compiler but you still need to have installed the compiler version you need. 您也可以打开开发人员命令提示符以选择编译器版本,并使用msbuild使用该特定编译器来构建目标,但仍需要安装所需的编译器版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.