C# Visual Studio无法加载System.Interactive.Async

C# Visual Studio无法加载System.Interactive.Async,c#,visual-studio-2015,discord.net,C#,Visual Studio 2015,Discord.net,我正在使用Discord.NET API包装器编写一个Discord bot,但由于某种原因,每当我尝试运行代码时,它都会在运行时崩溃 new Program().StartAsync().GetAwaiter().GetResult(); 这是启动机器人的线路System.Interactive.Async包含在解决方案的参考中,并且在NuGet Package Manager中是最新的。我已经尝试添加 <dependentAssembly> <assemblyIdenti

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

new Program().StartAsync().GetAwaiter().GetResult();
这是启动机器人的线路
System.Interactive.Async
包含在解决方案的参考中,并且在NuGet Package Manager中是最新的。我已经尝试添加

<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" />


我最终解决了这个问题。dll文件已损坏,因此我只是请一位朋友给我发送了他们的副本。

我发现我在不同的.csprojs中引用了多个版本的System.Interactive.Async。统一参考文献解决了这个问题