我正在尝试CI:将xamarinform与jenkins集成。
已为Mac安装了Visual Studio
使用以下命令进行nuget恢复
:
/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono-
runtime = v4.0
/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/nuget/nuget.exe恢复XamarinSampleCI.sln
但是出现以下错误:
MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin'.
MsBuild.exe does not exist at '/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin'.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
答案 0 :(得分:0)
在jenkin中,我们需要安装插件Environment Injector插件,并将环境变量设置为PATH = / Library / Frameworks / Mono.framework / Versions / Current / Commands:$ PATH