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