I'm using aspnet_compiler.exe to precompile my application for deployment.
However, I don't think it's working, for two reasons:
- I see my applications assemblies under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files, even if i manually clear out this directory & restart the app.
- The performance hit to JIT the application is present. This is very specifically what I'd like to avoid, even though it is 'one time'.
Here's specifically what I'm doing:
- Build the solution in studio.
- execute aspnet_compiler.exe -v /Foo -p c:\builddir c:\deploydir (where Foo is the vdir my app runs under, c:\builddir is where studio builds to, and c:\deploydir is the location where
- I then copy c:\deploydir to the web server.
- I access http://localhost/Foo
- After 30 seconds, the app displays, and I can see that assemblies have been generated in Temporary ASP.NET Files.
If it's notable, I'm using .net 3.5 SP1/Studio 2008 SP1. compilation debug=false is also set in web.config.