Nuget Restore不适用于Jenkins上的Xamarin形式

时间:2018-11-27 15:26:39

标签: jenkins xamarin.forms msbuild jenkins-plugins

我正在尝试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

1 个答案:

答案 0 :(得分:0)

在jenkin中,我们需要安装插件Environment Injector插件,并将环境变量设置为PATH = / Library / Frameworks / Mono.framework / Versions / Current / Commands:$ PATH

从此链接获得帮助: https://www.junian.net/xamarin-jenkins-hockeyapp/