Repository navigation
WIP AssemblyLoadContext - #1219
Andy Jordan (andyleejordan) wants to merge 16 commits into
Conversation
|
Additionally, .NET Core 1.0 correctly does not throw when loading assemblies that are in the TPA, so try/catch logic that was introduced in the ALC was removed. Note that this does not quite work. PowerShell loads, but there are some assembly loading issues, heh. |
|
Dongbo Wang (@daxian-dbw) sergei (@vors) BTW I ported the type catalog generator to .NET Core 😄 |
|
One problem we need to solve is that, right now, the whole project must be published, since the only path we start with is |
|
Woah. This is working. That is, if I Given that I have debugging code in this, that's the exact output I was expecting. |
|
Not all tests are passing, as some methods aren't getting found (as if implicit loading isn't working), but it's progress. Dongbo Wang (@daxian-dbw) can we see your changes too? I'd like to converge. |
|
Actually, this is very promising. It looks like all the "missing methods" are coming just from |
sergei (@vors) does this mean anything to you? |
Added ability to choose install location when using MSI, fixed issue #1135
Reason: msbuild v4 cannot resolve it
|
Dongbo Wang (@daxian-dbw) I'm probably going to pull out the |
87c2a70 to
73f7766
Compare
Exclude Microsoft.WSMan.Management from the list of default snapins
Update PowerShell to use .NET Core 1.0
Add simple test for non-empty workflow, make it work
Instead, rely on intercepting Assembly.Load
73f7766 to
5beb20b
Compare
5beb20b to
c1034c3
Compare
|
Ah I need to change the base branch. Closing and re-opening. |
This is work-in-progress to resolve #839.
This mimics the deprecated
InitializeDefaultLoadContextby loading our top-level DLL (in this case,ConsoleHost) from the loader shim (src/powershell) manually with the ALC, then invoking its entry-point via reflection. In this way, all subsequent libraries are loaded through the same ALC (ours).This also reverts the
ClrFacade.Loadwork-around I'd introduced, as this should mean all assemblies are intercepted correctly.This PR contains debugging and unfinished code, and exists solely to share with Dongbo Wang (@daxian-dbw).