C# - 如何在运行时在 WinRT 通用应用程序中加载 dll

标签 c# dll reflection windows-runtime windows-applications

在 .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/

相关文章:

c# - 当 Regex.Matches 发现不匹配的字符串时如何停止

c# - 数据存储选项

c# - NuGet 包无法为 lib 目录中的 DLL 添加对项目的引用

java - 如何在运行时将 Class<T> 转换为类似于 Class<T extends Foo> 的对象?

c# - 防止更改 String.Empty 的值

c# - 软删除实体的导航属性

c# - 如何在 Entity Framework 中获取数字字符串列的最大值

c# - 从控制台应用程序动态调用 Web 服务

c# - "Unable to find an entry point named [function] in dll"(c++到c#类型转换)

c++ - Winbio.h No such file or directory 错误