Using MSBUILD with 12.1

Using MSBUILD with 12.1

Hi,I'm having issues since upgrading with msbuild. I already checked this link here:http://software.intel.com/en-us/articles/build-the-visual-c-2010-project-with-msbuild-and-intel-c-compiler-from-command-line/
I get the following;" C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Platforms\\x64\\PlatformToolsets\\Intel C++ Compiler XE 12.1\\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.1.targets(38,5): error MSB4062: The "ICMessage" task could not be loaded from the assembly Intel.Build.ICLTasks.ICMsgTask, Version=12.0.0.0, Culture=neutral, PublicKeyToken=3c0c138f5bbab72f. Could not load file or assembly 'Intel.Build.ICLTasks.ICMsgTask, Version=12.0.0.0, Culture=neutral, PublicKeyToken=3c0c138f5bbab72f' or one of its dependencies. The system cannot find the file specified. Confirm that the 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. [C:\\Data\\softmetal_1_2\\Common\\Server\\openslp-2.0.beta1\\win32\\slpdcommon\\slpdcommon.vcxproj] C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Platforms\\x64\\PlatformToolsets\\Intel C++ Compiler XE 12.1\\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.1.targets(38,5): error MSB4062: The "ICMessage" task could not be loaded from the assembly Intel.Build.ICLTasks.ICMsgTask, Version=12.0.0.0, Culture=neutral, PublicKeyToken=3c0c138f5bbab72f. Could not load file or assembly 'Intel.Build.ICLTasks.ICMsgTask, Version=12.0.0.0, Culture=neutral, PublicKeyToken=3c0c138f5bbab72f' or one of its dependencies. The system cannot find the file specified. Confirm that the 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. [C:\\Data\\softmetal_1_2\\Common\\Server\\openslp-2.0.beta1\\win32\\slpdcommon\\slpdcommon.vcxproj]"

11 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Best Reply

kajwes posted his work-around for this issue on this thread.

the detail steps are:
1. open anIntelC cmd prompt with "admin" from [start->all programs->Intel Parallel Studio XE 2011-> Command prompt->Intel-64 VS2010 mode"
2. cd to "\Microsoft.NET\Framework\"
3. run "gacutil.exe /i Intel.Build.ICLTasks.ICMsgTask.dll"

let me know if it works. strange, we're unable to duplicate this issue.

did you install the Intel C++ Composer XE 2011 or Intel Parallel Studl XE 2011 on a "D:" drive?

thanks,
Jennifer

Hi,Thanks! That worked! I saw that post but I coudn;t figure out how to make it work. Turns out I was in framwork64. Works now.I installedparallel_studio_xe_2011_sp1_update3_novsshell_setup.exe from the download site using the default install location.V

That's great that it works.

Could you do one more check for me?

I talked to our IDE engineer about this specific issue, the "gacutil" should be needed to register the assembly.

Did you run "msbuild" from the Intel C++ Composer's command prompt?

The root cause is that the "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" is not on the "path".

Could you send the "set path" output to me from the command prompt where you run the msbuild? Maybe the "path" overflowed.

thanks,
Jennifer

Hi, To answer your questions;1. "Did you run "msbuild" from the Intel C++ Composer's command prompt?"Yes I ran from the command prompt.
2. Bellow is the path.
3. Now when I run from Jenkins, when I call the batch file to setup the compiler env it just exits without error?C:\Program Files (x86)\Intel\Composer XE 2011 SP1\bin\intel64;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64\v3.5;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\tbb\bin\..\..\redist\intel64\tbb\vc10;C:\Program Files (x86)\Intel\VTune Amplifier XE 2011\bin32;C:\Program Files (x86)\Intel\Inspector XE 2011\bin32;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\mkl;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mpirt;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\bin\intel64;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64\v3.5;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\tbb\bin\..\..\redist\intel64\tbb\vc10;C:\Program Files (x86)\Intel\VTune Amplifier XE 2011\bin32;C:\Program Files (x86)\Intel\Inspector XE 2011\bin32;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\mkl;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mpirt;

If you get the command prompt window from Intel C++ Composer XE menu like [start->all program->Intel Parallel Studio XE 2011->command prompt->Parallel Studio with Intel Compiler -> Intel 64 Visual Studio 2010 mode], there is no need to call the Intel compiler's env script any more.

Could you try the following and let me know? thanks a lot.
1. open the Intel C++ Composer XE command prompt with "Admin right"
2. unregister the "gacutil.exe /u Intel.Build.ICLTasks.ICMsgTask.dll"
3. run "msbuild" to see if it works.

Jennifer

Hi Jennifer,I have a build system (Jenkins) that runs a build script from a batch file. The batch file has to run the intel compiler env script in order to build. This used to work before I updated to XE 2011. I was perviously just using 2011. I have tried this on 3 different machines with the same results.Would you like me to still do your three steps up above?

FYI, what I posted above was directly from the start menu. I did not call the script a double time.

Here it is again, just be sure;Path=C:\Program Files (x86)\Intel\Composer XE 2011 SP1\bin\intel64;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64\v3.5;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\tbb\bin\..\..\redist\intel64\tbb\vc10;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\ipp;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mpirt;PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSCPath=C:\Program Files (x86)\Intel\Composer XE 2011 SP1\bin\intel64;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64\v3.5;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ipp\..\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\tbb\bin\..\..\redist\intel64\tbb\vc10;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\ipp;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mpirt;PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

So you have Intel Parallel Studio 2011 installed first, then upgraded to Intel Parallel Studio XE 2011, and encountered this problem. right?

Let me try to reproduce then. thanks.

Jennifer

I had exactly the same issue, only that Intel.Build.ICLTasks.ICMsgTask.dll was not found on my computer at all.
It was a fresh install of Windows 8, then VS 2005,2008,2010 and 2012. Finally I installed IPS C++ 2011 and 2013 (2011 integration only for VS2005).
That file was not installed anywhere. I had choosen custom installation and only changed the drive to "H". After installation it didn't compile anything.
I removed it and installed again (at first for test on "C", but then on "H" again), but this time I actually make sure that on custom installation all items are "All items and subitems will be installed". It took some seconds for each point, but then installed.
After installation, it worked fine (even from drive "H").

Another small inconvience was the IPS C++ only installed without error, if I first had opened and configured all the VS environments... I tried to install 3 times, even as admin, but all haltet with some error. But finally I have it all up again and working.

Even if I have resolved my problem, perhaps it will help anyone for anything...

Regards,

Andre

Melden Sie sich an, um einen Kommentar zu hinterlassen.