Did someone already tried to build a Monogame 3.6 on a Windows application environment using AppVeyor?
I would like to build the Android APK of my app using AppVeyor and send it to HockeyApp, but I don’t figure out how to install the last version of Monogame on AppVeyor.
Doing some researches, I found a project that use AppVeyor with Monogame (here), but it’s for an older version (3.4), and looking to the YAML code, we can see that he uses PowerShell to download the .exe of Monogame and extract it with 7z. That’s work because Monogame 3.4 executable file is just a self-extracting archives (SFX), but the one of Monogame 3.6 is a real installer.
The other solution would be to use the Nugget package, AppVeyor seems to support the Nugget package restoration, but what happen in this case for the content pipeline? The build server needs to have the content pipeline binary to convert each assets, and it’s not included into the Nugget package, right?
No, the content pipeline is not included in the NuGet, but it might be in the future. I think you can install MG on windows by starting NSIS in silent mode. Check out this thread: Silent install for MonoGame 3.5 for VisualStudio?
I haven’t tried that myself though.
But the Start-Process doesn’t seem to do anything. On my own computer (Windows 10), even if I precise /S (for silent mode), I have a warning popup (UAC), maybe it’s the same thing on AppVeyor, maybe that, as simple user, we are not allowed to run installer on their environment.
I perform some other researches, and even if I wouldn’t like to use my PC as a build server agent, I think that I will try to use TeamCity (I use ReSharper and really love the work of JetBrains), MonoGame and MonoGame.Extended use it, so I think it can be a good alternative.