title: How to run .NET 4.5 on XSP using Mono?
body: <p>I have installed Mono 3 however when I run <code>xsp</code> or <code>xsp4</code> it shows that I'm using .NET 4.0. I need to have .NET 4.5. Is it possible? Where can I configure it?</p>
  
  <p>I've seen <a href="https://stackoverflow.com/questions/14244779/unable-to-run-an-asp-net-4-5-app-on-xsp-on-mono-3">this</a> page but I don't have any of those folders where I downloaded sources.</p>
  
  <p>This is what it shows when I enter website by running <code>xsp4</code>:</p>
  
  <blockquote>
    <p>Version Information: 3.2.7 (master/1eef047 C  nov 28 18:16:30 EET 2013); ASP.NET Version: 4.0.30319.17020</p>
  </blockquote>
  
  <h1>How I installed Mono and XSP</h1>
  
  <p>Firstly I downloaded Lubuntu 13.10 32bit and launched it inside VirtualBox. Then did <code>apt-get update</code> and <code>apt-get upgrade</code>. After that rebooted the system.</p>
  
  <p>Make sure all commands are executed as super user.</p>
  
  <pre><code>sudo -s
  </code></pre>
  
  <p>Got dependencies</p>
  
  <pre><code>apt-get install autoconf automake libtool g++ gettext libglib2.0-dev libpng12-dev libfontconfig1-dev mono-gmcs git
  </code></pre>
  
  <p>Downloaded sources of Mono and XSP</p>
  
  <pre><code>cd /opt
  git clone git://github.com/mono/mono.git
  git clone git://github.com/mono/xsp.git
  </code></pre>
  
  <p>Installed latest stable Mono from github</p>
  
  <pre><code>cd /opt/mono
  ./autogen.sh --prefix=/usr
  make
  make install
  </code></pre>
  
  <p>Installed latest stable XSP from github</p>
  
  <pre><code>cd /opt/xsp
  ./autogen.sh --prefix=/usr
  make
  make install
  </code></pre>
  
  <p>Tested that I have 4.0 running on XSP instead of 4.5</p>
  
  <pre><code>cd /home/pc/web
  xsp4 # 4.0
  xsp2 # 2.0
  xsp  # 2.0
  </code></pre>
  
  <h1>My configuration</h1>
  
  <p><code>/usr/bin/xsp4</code> looks like it should use 4.5. Just like <a href="https://stackoverflow.com/a/15639165/440611">this</a> answer suggested. Also, I don't have <code>xsp4.exe</code> in my <code>/usr/lib/mono/4.0/</code> only in <code>/usr/lib/mono/4.5/</code> so I cannot copy anything like suggested in that answer.</p>
  
  <pre><code>#!/bin/sh
  exec /usr/bin/mono $MONO_OPTIONS "/usr/lib/mono/4.5/xsp4.exe" "$@"
  </code></pre>