Thursday, March 22, 2012

Web Deployment project

Hi.

After installing the web deployment project on a computer I saw that every cs of every page is found there.
How can I make sure that only the needed cs files are there (for example only files under the app_code should exist).

* The only option in the web project is to add its content (and there are no filters)?

* I don't want to give code that should be there

Thanks.

Hello.
well, i think that you're looking for pre-compilation. by using the aspnet_compiler you can compile your project so that only the necessary files are deployed on a server. pre-compilation lets you precompile you app in 2 modes: 1) changes can be made to the aspx pages after being deployed to the server or 2) no changes can be made to these files after being deployed on the server.
what you're trying to do is not available by default, ie, precompilation allways compiles app_code files and code behind files into assemblies (so, you'll not be able to compile the codebehind files and not the app_code file).
How can i do it from within the deployment project? automatically

0 comments:

Post a Comment