aspnet/KRuntime — pull request #489 by davidfowl (2014-07-31 17:31:54+00:00)
Title: Refactor export walk

Today when compiling, dependency exports are transitive by default. This means when you compile A with a dependency on B GetLibraryExport(A) will return exports for B as well. This is great in general for things like meta packages but it makes it hard to get the exports for a specific project/package without getting the closure.

The goal of this change is to fix that and split move the recursion out of the call itself and into a separate component. The ILibraryManager has an additional method GetAllExports that will get the recursive exports and GetLibraryExport will be changed to return just the exports for the specified name.

This will require changes to Razor and Scaffolding to use GetAllExports. Also one performance side note is that we no longer cache the recursive graph. That will need to happen by individual components calls into this API.

/cc @pranavkm @PradeepKadubandi