mono

An open source, cross-platform, implementation of C# and the CLR that is binary compatible with Microsoft.NET

SlackBuild

Package 64: mono-2.11.4-x86_64-1_SBo.tgz

Package 64 bit: gtk-sharp-2.12.10-x86_64-1_SBo.tgz

Package 64 bit: mono-addins-1.0-x86_64-1_SBo.tgz

Register .net/Mono for binfmt_misc

http://www.mono-project.com/Running_your_first_Mono_application

XSP, ASP.Net mono web server

cd /tmp
wget https://slackbuilds.org/slackbuilds/14.2/development/xsp.tar.gz
tar xvzf xsp.tar.gz
cd xsp
wget https://github.com/mono/xsp/archive/4.4/xsp-4.4.tar.gz
./xsp.SlackBuild 
installpkg /tmp/xsp-4.4-i586-1_SBo.tgz

example asp.net

|-- index.aspx
|-- index.aspx.cs
`-- web.config

index.aspx

   1 <%@ Page language="c#" src="index.aspx.cs" Inherits="helloworld.Index" AutoEventWireup="false"%>
   2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   3 <html xmlns="http://www.w3.org/1999/xhtml" >
   4 <head runat="server">
   5     <title>Hello Page</title>
   6 </head>
   7 <body>
   8   <div>
   9     <form method="post" runat="server">
  10       <asp:Label id="lblx" runat="server"></asp:Label>
  11       <asp:Button id="btnx" runat="server" onclick="btnx_Click" Text="Click me" ></asp:Button>
  12     </form>
  13   </div>
  14 </body>
  15 </html>

CSharp/mono (last edited 2018-04-25 00:07:27 by localhost)