tags:

views:

46

answers:

4

The ASP.NET framework does a very good job of detecting when a file has changed and recompiling that file etc. I would like to be able to hook into that update process. Is this at all possible?

I might want to do this as part of an initiative to try and version web sites developed as Web Site projects, versus Web Applications, where the version is easily found in statically deployed assemblies. If I my be misdirecting my energies as there are already better way if versioning web sites, I'd still appreciate some pointers.

+1  A: 

I don't know if you can hook into that logic at all - perhaps you could add your code to Application_OnStart as this method will fire when ASP.NET recycles the AppPool and restarts the website.

Andrew Hare
I was about to answer that, but your link goes to BizTalk.
Adrian Godong
Haha - yes it does! I have fixed it, thanks :)
Andrew Hare
A: 

This might put you on the right path (might -- I haven't tried this).

http://www.codersource.net/csharp_iis_metabase.html

Kevin
A: 

Have you tried developing a separate module for ASP.NET that keeps track of last change?

Jovan
+1  A: 

Have you tried Web Deployment projects?

Scott Gu has a blog post.

Greg B
Interesting, but it pertains to pre-built sites, where I prefer the 'compile on demand' model, i.e. just deploy source and let the pipeline build. My problem is that the deployer can replace any source file without recording it.
ProfK
I think you're problem is then in the human part of the workflow and who has access to the server.
Greg B