You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
I am trying to write little code generation tool as ASP .NET 5 console app
Problem:
AssemblyA
AssemblyB that depends on AssemblyA
Using IAssemblyLoadContext.LoadFile I load both assemblies into memory, but upon accessing AssemblyB.ExportedTypes the FileNotFoundException is thrown (complaining about AssemblyA not found).
Thanks for pointing me into the right direction. I basically used the code from your example and it's working fine. I will deal with performance later, currently I am just experimenting with the new runtime ... i like it quite a lot, good job ;)
I am trying to write little code generation tool as ASP .NET 5 console app
Problem:
AssemblyA
AssemblyB that depends on AssemblyA
Using IAssemblyLoadContext.LoadFile I load both assemblies into memory, but upon accessing AssemblyB.ExportedTypes the FileNotFoundException is thrown (complaining about AssemblyA not found).
ActualCode:
https://github.com/justkao/Bolt/blob/Bolt_ASPNET5/src/Bolt.Console/AssemblyCache.cs
Should I use other API to dynamically load assemblies ? The AppDomain.AssemblyResolve is not available in dnxcore profile.
The text was updated successfully, but these errors were encountered: