Is it possible to declare an alias for an Assembly Part in Microsoft.AspNetCore.Mvc.Razor?

Viewed 66

When loading an Assembly from a dll-file with AssemblyLoadContext.Default.LoadFromAssemblyPath(file); and adding it as an ApplicationPart via the ApplicationPartManager is it possible to declare an alias for this Application Part like you could do when passing references to the CSharp compiler?

My problem is that I have two Application Parts containing classes with the same name and namespace, so I need an oppurtunity to differ these when using them in a view.

0 Answers
Related