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