There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
AssetManager extension points in Bundling
The System.Web.Optimization.AssetManager class is currently internal so you cannot work with it without reflection. The
System.Web.Optimization.Scripts.Manager is also private so you cannot easily extend the creation of AssetManager (AssetManager.GetInstance).
I would like to intercept the creation and usage of AssetManager when using the bundling component.
Example use case:
Change the AssetManager.OptimizationEnabled property on a per-request or per-session basis, e.g. initiate a debug session without changing the configuration or affecting any other user. This is already possible with reflection but it would be much
cleaner with these extension points.