英特尔编译器18.0工具集引发msbuild异常 [英] Intel Compiler 18.0 Toolset raises exception with msbuild

查看:492
本文介绍了英特尔编译器18.0工具集引发msbuild异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我重新安装了机器并安装了Visual Studio 2017Visual Studio 2019 (Preview)Intel Compiler 18.由于未知原因,我的项目无法正常工作,而且我无法弄清楚是什么原因造成的.有没有人遇到以下错误消息?

I reinstalled my machine and installed Visual Studio 2017, Visual Studio 2019 (Preview) and the Intel Compiler 18. Due to unknown reasons, my projects do not work anymore, and I can't figure out what's causing it. Did anyone ever experience the following error message?

我的项目使用Intel C++ Compiler 18.0工具集.

Visual Studio 2017错误消息:

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xmemory0(178):
error : identifier "__STDCPP_DEFAULT_NEW_ALIGNMENT__" is undefined
1>      enable_if_t<(!_HAS_ALIGNED_NEW || _Align <=
__STDCPP_DEFAULT_NEW_ALIGNMENT__), int> = 0> inline

Visual Studio 2019(Preview)错误消息:

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\Intel C++ Compiler 18.0\Toolset.targets(150,5):
error MSB4062: The "ICMessage" task could not be loaded from the assembly C:\Program Files %28x86%29\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Intel.Build.ICLTasks.v150.dll.
Could not load file or assembly 'file:///C:\Program Files %28x86%29\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Intel.Build.ICLTasks.v150.dll' or one of its dependencies.
The system cannot find the file specified.
Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

在重新安装之前,我的项目运行正常.有人知道这里发生了什么吗?

Before the reinstallation, my project worked fine. Does anyone have an idea what's going on here?

推荐答案

系统找不到指定的文件.

The system cannot find the file specified.

1.检查路径C:\Program Files (x86)\Microsoft Visual Studio\2017\xxx\Common7\IDE\VC\VCTargets中是否存在Intel.Build.ICLTasks.v150.dll.根据错误消息,它不存在,所以我猜没有成功安装Intel Compiler 18.

1.Check whether the Intel.Build.ICLTasks.v150.dll exists in the path C:\Program Files (x86)\Microsoft Visual Studio\2017\xxx\Common7\IDE\VC\VCTargets. According to the error message it's not there, so i guess the Intel Compiler 18 was not successfully installed.

请注意,要执行安装的recommended order是:成功安装VS,然后安装英特尔编译器.如果在安装VS2017之前先安装Intel编译器,则会引起问题.

Note that recommended order to do the installation is: Install VS successfully and then install Intel Compiler. If you install the Intel Compiler before installing the VS2017, it will cause issues.

例如:安装VS后,当我安装Intel Parallel Studio时,它将把多个文件和程序集下载到文件夹C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets中,以供将来开发.因此,如果我在安装VS之前先安装Intel编译器,则无法在其中找到Intel.Build.ICLTasks.v150.dll.

e.g: After installing VS, when I install the Intel Parallel Studio, it will download several files and assemblies to folder C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets for future development. So if I install Intel compiler before installing VS, I can't find Intel.Build.ICLTasks.v150.dll there.

2.对于VS2017中的原始错误消息,建议您将Intel Compiler更新到2019 Update3及更高版本,请参见

2.And for your original error message in VS2017, I suggest you update your Intel Compiler to 2019 Update3 and higher, see versions. When you reinstall VS, the installer will download latest 15.9.16 version(newer than your old version), so you also need to upgrade your Intel compiler version to resolve some conflicts.

这篇关于英特尔编译器18.0工具集引发msbuild异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆