C++ Jenkins windows slave无法使用命令行选项生成COM dll
我已经在Ubuntu上配置了jenkins,我正在尝试在Windows从属节点上构建Windows COM对象 我在MSBuild.exe中遇到的第一个问题:-在jenkins中安装和设置MSBuild path后,我能够解决路径错误。C++ Jenkins windows slave无法使用命令行选项生成COM dll,c++,jenkins,com,vcbuild,C++,Jenkins,Com,Vcbuild,我已经在Ubuntu上配置了jenkins,我正在尝试在Windows从属节点上构建Windows COM对象 我在MSBuild.exe中遇到的第一个问题:-在jenkins中安装和设置MSBuild path后,我能够解决路径错误。 即使在设置了MSBuild位置之后,它仍给出以下错误 “错误”MSB34 11:无法加载VisualC++组件“VCuBuff.exe” 请参见下面的错误声明: Path To MSBuild.exe: C:\Windows\Microsoft.NET\Fra
即使在设置了MSBuild位置之后,它仍给出以下错误 “错误”MSB34 11:无法加载VisualC++组件“VCuBuff.exe” 请参见下面的错误声明:
Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe
Executing the command cmd.exe /C " C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe /t:Rebuild /p:Configuration=Release C:\Jenkins_Home\workspace\test\test.sln " && exit %%ERRORLEVEL%% from C:\Jenkins_Home\workspace\test
[test] $ cmd.exe /C " C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe /t:Rebuild /p:Configuration=Release C:\Jenkins_Home\workspace\test\test.sln " && exit %%ERRORLEVEL%%
Microsoft (R) Build Engine Version 3.5.30729.5420
[Microsoft .NET Framework, Version 2.0.50727.5485]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 11/30/2015 3:34:35 PM.
Project "C:\Jenkins_Home\workspace\test\test.sln" on node 0 (Rebuild target(s)).
Building solution configuration "Release|Win32".
C:\Jenkins_Home\workspace\test\test.sln.cache(64,5): error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008.
Done Building Project "C:\Jenkins_Home\workspace\test\test.sln" (Rebuild target(s)) -- FAIL
我能够在windows命令行上构建同一个项目,但我无法解决jenkins的问题
--任何解决此问题的建议我已通过在jenkins从属节点配置中设置
路径
来解决此问题
通过在命令行上运行set
命令,我获得了path
环境变量详细信息,我可以在其中构建此项目
转到http://server_name:8080/computer/win_slave_name/configure
并添加路径,如图所示vcBuudi.EXE是在VS2008和更早创建的C++项目的MSBuudio.EXE等价物。无论VS版本如何,构建以.NET 3.5为目标的C++/CLI项目都绝对是必需的。获得它的唯一方法是在该机器上安装VS2008。如何在一台启动Ubuntu的机器上实现这一点还有待想象。感谢您的输入,我能够通过在windows从属配置中设置环境变量的路径来解决这个问题