Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yep, it can be done, well, almost... There's actually a few bits that do work and a bit that sadly isn't fully automated yet at this point.</p> <h2>The good news</h2> <p>It is possible to run a .NET build from within Jenkins. There's a good blogpost about it that explains what you need to do in a step-by-step manner. <a href="http://jenkinsheaven.blogspot.com.au/2011/04/building-build-first-net-build.html" rel="nofollow">http://jenkinsheaven.blogspot.com.au/2011/04/building-build-first-net-build.html</a></p> <p>Since Mono for Android (on Windows at least) is a feast of MSBuild goodness, you can simple schedule </p> <pre><code>MSBuild /t:Package /p:Configuration=Release MySolution.sln </code></pre> <p>Where the guide says you should enter the MSBuild command. That way you will get a .apk file from the build. </p> <h2>The bad news</h2> <p>At this point there's not a lot going on in the unittesting department. There's a port of NUnit Lite for Mono for Android, which allows you to run tests. But the one I found doesn't support running the tests automatically... yet.</p> <p>You can download the bits here if you feel adventurous and want to add support for it yourself: <a href="https://github.com/SpiritMachine/NUnitLite.MonoDroid" rel="nofollow">https://github.com/SpiritMachine/NUnitLite.MonoDroid</a></p> <h2>The pro tips (tm):</h2> <ul> <li><p>Make sure you activate the license of Mono for Android on the build server. Without it, you create APK files that cannot run on the device, because they lack an important bit of code.</p></li> <li><p>Add the correct signing properties to your .csproj file, normally a debug key is used to sign the package, but by overriding a few MSBuild properties you can specify the propery release key. There's a manual on how to do this here: <a href="http://docs.xamarin.com/android/tutorials/Preparing_Package_for_Android_Marketplace?highlight=signing" rel="nofollow">http://docs.xamarin.com/android/tutorials/Preparing_Package_for_Android_Marketplace?highlight=signing</a></p></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload