One query regarding a Web-Site project in Visual Studio –
I did following steps –
- Created a WebSite using VS 2010
- Added a custom class in App_Code folder and consumed it in default.aspx
- Run the application and I can see the result
- Any changes made in server code are reflected on the browser without doing any recompile (website feature)
So, when dynamic recompilation takes place for a web-site, somewhere .net run-time will be storing the compiled dll, isn’t it?
Can anyone please guide where I can find the dll being generated during dynamic build are stored? (I just want to know this out of curiosity :-))
Thank you!
P.S. I also did a ‘Publish Website’ and I can see a bunch of compiled dlls in the publish folder. So, my Question is only regarding dynamic build.
You may find the name & location of Code Gen Directory via property of
HttpRuntime.CodegenDirprogramatically.