I am inheriting some ASP.NET code (I am an OS guy, not a web dev (yet ;-)). The solution has been re-factored and there are multiple projects (libraries and asp.net sites) in it. Aside from the libraries, there are two asp.net projects (called MAINSITE and SUBSITE). Only MAINSITE is being used as the official site (as an asp.net site), and MAINSITE has a depency on the code in the SUBSITE asp.net site, but doesn't use the site itself. I am trying to figure out how to clean this up and convert SUBSITE into a library.
My quick question is, whenever I debug the MAINSITE (set as default), it runs two asp.net processes: MAINSITE and SUBSITE. And so, at the very least, how can I avoid this? Is there a quick/temporary solution to this?
My detailed question is this:
What makes an asp.net site an asp.net site? For instance, in C the difference between an dll and exe could be defined (superficially anyway) as the presence of a main, and potential export information for the library (among other things, of course). If I were to convert an exe to dll I might: 1. remove the main code 2. make sure the public interface was correct (and exported correctly) 3. convert the makefile to build a dll rather than an exe.
Can someone point me to some similar steps for asp.net to .net lib? Maybe: 1. get rid of index.aspx 2. get rid of web.config 3. any *.cs files to remove? 4. how do I change the properties? 5. any gotchas?
Thanks so much for your help. Details: Visual Studio 2008/.NET 3.5