Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dsimunic/10966949 to your computer and use it in GitHub Desktop.
Save dsimunic/10966949 to your computer and use it in GitHub Desktop.
apt-get install -y wget build-essential gettext autoconf automake libtool
MONO_VERSION=3.4.0
wget http://download.mono-project.com/sources/mono/mono-${MONO_VERSION}.tar.bz2
bunzip2 -df mono-${MONO_VERSION}.tar.bz2
tar -xf mono-${MONO_VERSION}.tar
cd mono-${MONO_VERSION}
cat > mcs/tools/xbuild/targets/Microsoft.Portable.Common.targets <<END
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\Microsoft.Portable.Core.props" />
<Import Project="..\Microsoft.Portable.Core.targets" />
</Project>
END
./configure --prefix=/usr/local; make; make install
rm -rf /tmp/*
apt-get remove --purge wget build-essential gettext autoconf automake libtool
@dsimunic
Copy link
Author

When building 3.4.0 on Linux, the mono 3.4 archive miss a file "Microsoft.Portable.Common.targets" at path mcs/tools/xbuild/targets/

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\Microsoft.Portable.Core.props" />
<Import Project="..\Microsoft.Portable.Core.targets" />
</Project>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment