using System; namespace CgiInCsharp { class Cgi { [STAThread] static void Main(string[] args) { Console.Write("Content-Type: text/html\n\n"); Console.WriteLine("Hello <b>World</b>"); } } }I tested this and it worked with Apache 2.4.x A fuller example https://www.codeproject.com/Articles/9433/Understanding-CGI-with-C
Programming Tips - C#: CGI application
Date: 2019oct31
Language: C#
Platform: .net
Keywords: csharp, dotnet, Common Gateway Interface, web, http
Q. C#: CGI application
A. Compile a C# application which reads from stdin and writes to stdout
and rename to .cgi