【发布时间】:2018-12-17 13:43:04
【问题描述】:
我有一个 .NET Core 2.0 Web API,显然是用 C# 构建的。我有一个从 VB dll 调用 void 函数的方法,当我运行程序时,这个函数调用会引发以下异常。
System.MissingMethodException:找不到方法:'System.Object Microsoft.VisualBasic.Interaction.IIf(Boolean, System.Object, System.Object)'
我已经在 GAC 上注册了 dll,我引用了项目本身而不是 .dll 文件,即使这样,Visual Studio 也不会让我调试它。
使用 Visual Studio 2017、.NET Core 2.0 框架。
【问题讨论】:
标签: c# vb.net dll .net-core .net-core-2.0