我以前只能用这个
运行vb.net应用程序apt-get install mono-runtime
apt-get install mono-vbnc
但我现在至少需要2.8.0才能运行已在Windows上编译的某个应用程序。我可以选择以下操作系统
ubuntu-12.04-x86
ubuntu-12.04-x86_64
ubuntu-12.10-x86
ubuntu-12.10-x86_64
centos-5-x86
centos-5-x86_64
centos-5-elastix_2.0.1_amd64
centos-6-x86
centos-6-x86_64
debian-6.0-x86
debian-6.0-i386-minimal
debian-6.0-x86_64
debian-6.0-amd64-minimal
debian-7-x86
debian-7.0-x86_64
我已经在ubuntu的多个版本上尝试了以下内容。
#!/bin/bash
echo Checking for prerequisites. Please enter password if prompted.
sudo apt-get update
sudo apt-get install libpng3 libpng3-dev libtool libtiff4 libtiff4-dev libexif12 libexif-dev libgif4 libgif-dev libpango1.0-dev libatk1.0-dev bison automake autoconf make gcc gtk-sharp2 build-essential xorg-dev libfreetype6 libfontconfig libfontconfig-dev gettext libglib2.0-dev git mono-complete libjpeg-dev
echo Downloading latest build of mono...
git clone git://github.com/mono/mono.git
echo Navigating to mono install directory.
cd mono
echo Building mono from source...
./autogen.sh --prefix=/usr/local
make
echo Installing mono, running with sudo
sudo make install
echo Done!
检查单声道版本说它已经有效,但由于这个错误,我实际上无法运行应用程序:
The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the 'usr/lib/mono/4.5/mscorlib.dll'.
我应该使用哪种操作系统,如何安装单声道2.8.0或更高版本来运行已在Windows上编译的C#应用程序?
答案 0 :(得分:0)
apt-get install mono-complete
。这是引导后续步骤所必需的。mono-3.2.8-branch
)。此时我不建议使用3.4.0或3.6.0分支,因为在过去一周(今天6月17日)仍然添加了新的提交。 3.2.8也是Ubuntu 14.04中捆绑的Mono版本。
你错了的是检查主分支。不,不,这不是你应该使用的稳定版本。