使用.NET Core开发程序时,使用dynamic类型,在编译的时候会报下面的错误
错误信息为:
CS0656 缺少编译器要求的成员“Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create”
出现这个问题是因为项目中缺少 "Microsoft.CSharp"包的引用。
在Nuget管理其中,搜索“Microsoft.CSharp”,如下图
或使用如下命令:
dotnet add package Microsoft.CSharp --version 4.5.0
此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。
I am a Coder and Crypto-Trader.
GitHub主页:https://github.com/chengxulvtu 博客园主页:https://nianming.cnblogs.com 寻古诗词网:https://www.xungushici.com