aspnet_compiler appears to have two modes:
- Target – Entire site is copied to the target folder,
PrecompiledApp.configis generated, generated assemblies go into target\bin, views are (optionally) replaced with placeholders - In place – Site is compiled in it’s original location, no
PrecompiledApp.configis generated, generated assemblies go into Temporary ASP.NET files, views are left as-is
Is it possible to trigger an in-place precompilation but have the generated assemblies + config also affect the original location?
Doing this is not possible. Note that the two modes target very different scenarios:
Note that if you do #1 in non-updatable mode, then even your .aspx (and related) files get modified to become stubs. So clearly, that could not happen in-place as that would end up deleting your original aspx files.
I’m not saying that it would be inconceivable to have some kind of hybrid mode that would do some of what Target mode does and keep it in the in-place bits. It’s just not a scenario that the tool is targeting.