0
我使用全局工具配置部分在Jenkins中配置了MSBuild插件。我所提供Jenkins MSbuild插件不工作
的详细信息 -
Name : MSBuild.exe
Path to MSBuild : C:\Windows\Microsoft.NET\Framework64\v2.0.50727
Default parameters : **No parameters**
在任务配置页面看起来就的MSBuild的infiormation像 -
MSBuild Version : (Default)
MSBuild Build File : WSCSharp.sln
Command line arguments : **None**
Pass build variables as properties : **Unchecked**
Continue Job on build Failure : **Unchecked**
If warnings set the build to Unstable : **Unchecked**
该项目是可以通过运行一个简单的C#应用程序使用命令 -
msbuild WSCSharp.sln /t:Build
但是,现在当我运行该程序时,它thro而建设Jenkins--
Building on master in workspace D:\Programs\Jenkins\jobs\WSCsharp\workspace
Path To MSBuild.exe: msbuild.exe
Executing the command cmd.exe /C " msbuild.exe WSCSharp.sln " && exit %%ERRORLEVEL%% from D:\Programs\Jenkins\jobs\WSCsharp\workspace
[workspace] $ cmd.exe /C " msbuild.exe WSCSharp.sln " && exit %%ERRORLEVEL%%
'msbuild.exe' is not recognized as an internal or external command,
operable program or batch file.
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
Finished: FAILURE
WS错误所以基本上它正在运行命令:msbuild.exe WSCSharp.sln
内部。任何想法为什么发生这种情况?
在此先感谢!
编辑:我曾尝试编辑路径的MSBuild这样的:
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe
这也不能工作。
感谢您的回答。但是这也不起作用。 –
您是否尝试将'MSBuild版本'设置为'MSBuild.exe'而不是'(默认)'? – foxtrot2nov
好的..现在它正在识别命令msbuid.exe。谢谢..你能编辑答案,以便我可以接受这个答案吗?非常感谢! –