Turning a precompiled web application into a regular web application

I have a quick question about precompiled web applications:

I recently took over a project done by someone else that is a pre-compiled web application. This means it doesn't have an App_Code folder, of course. Due to the nature of this project, I would like to put my code on the server anyway.

I can't just add the code because I will get an Exception stating that the App_Code folder is not allowed because this is a precompiled web application. If I delete the "PrecompiledApp.config" file, the application will crash.

So what are the correct steps to take to turn a precompiled web app into a compile-on-demand web app?

Thanks for the help.

+3


source to share


1 answer


I can get this to work in VS2010.

Go to the web application settings and select the Package / Web Publishing tab. There dropped out what was probably the default "Only files needed to run this application". If I use this, it just publishes the compiled DLLs to the server and web files, but none of those codes.



If I change this to "All files in project folder" then I get everything - like C # code for my controllers.

Of course, whether you want your production code on the server is a different matter and you also get all VS solution files and the like, so it looks pretty messy.

0


source







All Articles