Question

I have many usercontrols that i reuse in different projects. They are all in the web site project. Upon making extension for a new customer, I am precompiling the complete web site and deploy it (with around 600 items UserControls & Pages in it). If I have to make a small modification on any page and want to deploy it I have to pre-compile whole project which takes around 15-20 minutes on my machine.

Is there a way to precompile and deploy only modified or selected items of a web site?

Thank you!

Was it helpful?

Solution 2

After long searches the answer is NO!

OTHER TIPS

I recommend you put your UserControls into their own projects(Web Deployment Projects) within the same solution, however many needed, which will compile them into .dlls:

ie:

Namespace.Module1.UI.dll

Namespace.Module2.UI.dll    

Namespace.Module3.UI.dll

If you publish using "allow this precompiled site to be updatable", you can precompile certain things and only publish those.
For example, if you only changed code in .cs files since the last publish, you can sometimes get away with only publishing the new App_Code.dll, but there are some tricky situations… For example, if you changed code in .cs files that the code in one of your pages depends on, you might need to publish a new precompiled version of that page as well. (I asked about why this is here, but no one has given a good answer so far.)
You can even publish precompiled pages and user controls in some cases, but nasty situations may arise here as well. For example, if your page uses a Master Page and User Controls, you might need new precompiled versions of those as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top