Skip to content

BuildManager.AddReferencedAssembly in NetCORE

Guille

Asked Jul 1, 2019, 10:29 AM EDT1 answer
Share
LinkedInX
I have 2 web api project with net core. 1.- Base web api. 2.- Contact web api.

I can load contact web api dynamically from base web api. but entities and layers assemblies are not loaded. For contacts web api to work, I must add the reference manually entities and layers assemblies in base web api. In NET Framework I use BuildManager.AddReferencedAssembly, but in net core don't exist. How can I add a dynamic reference with net core?. Thanks.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Add System.Dynamic.Runtime and Microsoft.CSharp as dependencies.
     
     
    0