C# 未找到方法:';System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert

C# 未找到方法:';System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert,c#,asp.net-core,.net-standard,C#,Asp.net Core,.net Standard,用例: 我试图通过一个.net标准2.0 nuGet包来使用.net核心2.0库,以便能够在.net Framework 4.6.1项目中使用它们 我在尝试将.net Core 2.0库转换为.net Standard 2时遇到以下异常: Method not found: 'System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert(Microsoft.CSharp.R

用例:

我试图通过一个.net标准2.0 nuGet包来使用.net核心2.0库,以便能够在.net Framework 4.6.1项目中使用它们

我在尝试将.net Core 2.0库转换为.net Standard 2时遇到以下异常:

Method not found: 'System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, System.Type, System.Type)'.
我已经尝试通过我的代码从堆栈跟踪中找到对它的引用,但是它指向一个非常简单的方法

我试图在一个完全基于.net内核的工作代码库中找到对该方法的引用


我的问题是:如何在Visual Studio中搜索此方法的调用位置以及如何潜在地解决此问题?

是否运行.Net可移植性分析器来检查哪些是可移植的以及哪些需要更改代码?在project@user1672994 . 感谢您的评论,我刚刚尝试了可移植性检查,它说100%与.net兼容Standard@Alberto. 我已将其添加到父项目中,错误仍然存在。是否需要在我尝试使用的NuGet中安装它?@MrGiggles您应该使用NuGet将其添加到.net standard2库中