在.Net中,有System.Reflection.Assembly。 LoadFrom(“文件位置”)和System.Reflection.Assembly。 LoadFile(“文件位置”)。在WinRT中,只有System.Reflection.Assembly。 加载(System.Reflection.AssemblyName)。
那我该如何在WinRT中加载dll文件呢?
最佳答案
根据我在互联网上阅读的所有内容,即使在UWP中,这仍然是不可能的。
我在这里创建了功能请求:
https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/18145291-dynamically-load-assembly
如果您对此功能投赞成票,将不胜感激。同时,除了在AppX包中包含DLL(这没有用)之外,我认为没有其他答案。
关于c# - C#-如何在WinRT通用应用程序中的运行时加载dll,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28662361/