Is anyone using MxBuild on linux (any flavour) .

0
Is anyone here using MxBuild on any linux flavour for creating deployment package ?  I am using Mono(version 4.6) as mentioned in documentation. Does it require any additional configuration? Getting following error while executin mxbuild command: ERROR: System.TypeLoadException: Could not load type 'Mendix.Modeler.Utility.AssemblyResolver' from assembly 'Mendix.Modeler.Utility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at Mendix.CommandLine.Shared.ProgramHelper.InitializeAndRun[T] (System.Func`2[T,TResult] program, System.Reflection.Assembly[] extraAssemblies) [0x00000] in <009e4959434f43ae9753a7ededb54a25>:0 
asked
1 answers
2

Hi Rushikesh,

I have just checked MxBuild 7.23.5 on Mono 4.6 using Docker with the following Dockerfile:

FROM ubuntu:16.04

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

RUN echo "deb http://download.mono-project.com/repo/ubuntu stable-wheezy/snapshots/4.6.0 main" > /etc/apt/sources.list.d/mono-xamarin.list \
  && apt-get update \
  && apt-get install -y mono-devel ca-certificates-mono

COPY mxbuild/ /var/opt/mxbuild/
COPY App1/ /tmp/mx/App1/

ENTRYPOINT [ "mono", "/var/opt/mxbuild/modeler/mxbuild.exe", "/tmp/mx/App1/App1.mpr" ]

I basically took a Ubuntu 16.04 image available in Docker, installed Mono 4.6.0 on it and copied the whole MxBuild directory that you get when you extract a .tar.gz.

I didn’t specify parameters for --java-home and --java-exe-path in MxBuild command line, but it doesn’t really matter in this case.

Please review the Dockerfile I provided and make changes to your environment accordingly. Also, if possible, please try to run this Dockerfile in your own Docker container. Maybe this would be a solution for your case.

Regards,
Alex

answered