Fixing .NET Core / .NET Standard error “Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create”
I’ve been doing some work converting Graze to .NET Core. Graze is a static web site generator which uses Razor and is built using .NET Framework.
One of the problems I hit when converting a class library to .NET Standard 2.0 was the following error at compile time:
Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'
Graze uses dynamics in some places and turns out this error is related to dynamic keyword. To fix it I had to include I just had to include Microsoft.CSharp from Nuget.