.net core 缺少编译器要求的成员“Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create”

项目是 vs2019 搭建的 .net core 3.1 项目,.net standard 2.0 类库中使用如下代码

1 dynamic result = new ExpandoObject();
2 result.code = "000";

代码报错:缺少编译器要求的成员“Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create”

解决方案:通过NuGet安装 Microsoft.CSharp

原文地址:https://www.cnblogs.com/PrintY/p/13544956.html