I’ve managed to get a C# asp page running under ubuntu/apache/mono, but I don’t want to write my framework in these ASP pages, I want to use straight C# and then I’ll use a templating language for my views. But I don’t know where to begin?
C# is a compiled language, so… how would I do this? Would I compile everything and then have apache hook into the (single) executable and pass in the the request URL? Could I request specific .cs pages and then have apache tell it to compile and then “display” it only if it’s been updated? Can the “view” files be compiled individually to avoid having to recompile everything every time there’s a change? Is there some “base” I can work from, or am I going to have to reinvent accessing GET and POST variables (by reading header info) and all sorts of other stuff we take for granted in languages like PHP?
AFAIK there’s no reason you can’t do what you want on top of the ASP.NET core, using things like HttpApplication, HttpHandler etc. For example, you could route all URLs to a single HttpHandler and take it from there manually.
I suggest taking a look at how ASP.MVC does it – create a new ASP.NET MVC project in MonoDevelop, look at the Global.asax.cs, open the Web.config and look at the custom http handlers and modules it registers. ASP.NET MVC is OSS so you can dig around in that too.