我有.net框架3.5上构建的.net应用程序,我正在尝试在Jenkins CI服务器上构建此应用程序.我添加了MSBuild插件,并添加了2.0,3.5和4.0版本的MSBuild的.exe文件的路径.但是我的构建过程失败了,显示以下错误消息.
Path To MSBuild.exe: msbuild.exe
Executing command: cmd.exe /C msbuild.exe Neo.sln && exit %%ERRORLEVEL%%
[Test project] $ cmd.exe /C msbuild.exe Neo.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 uild as failure
Finished: FAILURE
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我解决.. ??
詹金斯入门。我会尽快学习!尝试在工具配置中设置msbuild。我有这个:
然后我有一个工作设置为使用显式设置进行构建,并使用上面的msbuild进行构建:
当我运行此作业时,第一个构建成功,但是第二个失败:
D:\var\lib\jenkins\workspace\VisionTest>"c:\program files (x86)\msbuild\14.0\bin\msbuild.exe" TBSM.Vision.Database\TBSM.Vision.Database\TBSM.Vision.Database.sqlproj
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2/27/2019 9:05:25 AM.
Project "D:\var\lib\jenkins\workspace\VisionTest\TBSM.Vision.Database\TBSM.Vision.Database\TBSM.Vision.Database.sqlproj" on node 1 (default targets).
GenerateSqlTargetFrameworkMoniker:
Skipping target "GenerateSqlTargetFrameworkMoniker" because all output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
SqlBuild:
Skipping target "SqlBuild" because all output files are up-to-date with respect to the input files. …Run Code Online (Sandbox Code Playgroud)