I am new to C #, ASP.NET.
Say I have an existing C # project (from the Console Application template, I work with Visual Studio). I want to be able to run a simple HTTP server and serve .aspx pages (or plain text even then I also look for a good ^^ template library), but only if a specific command is provided to the program via the command line interface. (Therefore, the default server is down.)
How could I do this best?
Thanks so much for any help!
Edit: To clarify, I would like all of these features to be embedded in a single project, not related to a website, not related to a website. That is, the project consists of three parts: a command line interface, an optional web interface (HTTP server), and a kernel that waits and responds to requests from one of these two interfaces. This is the current state of an existing project, without a web interface.
user12163
source
share