mono * nancy (Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono) on Ubuntu.

 

Nancy – Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono、起動。

 

# building mono.

sudo apt-get update -o Acquire::ForceIPv4=true
sudo sudo apt-get install -y autoconf automake libtool g++ gettext
cd ~/src
git clone git://github.com/mono/mono.git
cd mono
cd ~/src/mono
./autogen.sh --prefix=/usr/local
make -j8 get-monolite-latest
make -j8
sudo make install

 

# building nancy.

cd ~/src
git clone https://github.com/NancyFx/Nancy.git
cd Nancy
./build.sh

 

# compiling demo.

cd ~/src
mkdir nancydemo
cd nancydemo
mcs Program.cs HelloModule.cs -r:../Nancy/src/Nancy.Hosting.Self/bin/Release/net452/Nancy.dll -r:../Nancy/src/Nancy.Hosting.Self/bin/Release/net452/Nancy.Hosting.Self.dll -r:/usr/local/lib/mono/4.5-api/Mono.Posix.dll
mono Program.exe

コメントをどうぞ

メールアドレスが公開されることはありません。 が付いている欄は必須項目です