【问题标题】:Visual Studio could not load System.Interactive.AsyncVisual Studio 无法加载 System.Interactive.Async
【发布时间】:2018-09-29 07:01:30
【问题描述】:

我正在使用 Discord.NET API 包装器编写一个 Discord 机器人,但由于某种原因,每当我尝试运行代码时,它都会崩溃

new Program().StartAsync().GetAwaiter().GetResult();

这是启动机器人的行。 System.Interactive.Async 包含在解决方案的参考中,并且在 NuGet 包管理器中是最新的。我已经尝试添加

<dependentAssembly>
<assemblyIdentity name="System.Interactive.Async" publicKeyToken="94bc3704cddfc263" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.3000.0" newVersion="3.0.0.0" />

到 app.config 但是,这并没有解决我的问题。该解决方案正在运行 .NET Framework 4.6.1。

错误图片:

【问题讨论】:

  • 对我来说,我发现我在不同的 .csprojs 中引用了多个版本的 System.Interactive.Async。统一引用解决了这个问题

标签: c# visual-studio-2015 discord.net


【解决方案1】:

我最终解决了这个问题。 dll 文件已损坏,所以我只是让朋友给我发一份他们的副本。

【讨论】:

    猜你喜欢
    • 2014-05-23
    • 2020-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多