GOTCHA: Compiler error CS0656 when using Dynamics in a .NET Standard project

This afternoon I'm experimenting with Dapper, a micro-ORM used by Stack Overflow. The most straightforward way to query with dapper is to get a list of Dynamic objects. But when I went to read some data out of a table I got this compiler error.

Screenshot of some code querying with dapper that returned an enumerable dynamic.
CS0656 Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'

I had to search the web for the cause. It turns out you need to install two NuGet packages to work with Dynamics:

I got tripped up on this because I thought Dynamics were just part of the features of C#, so I wouldn't expect to require a nuget package to use them. But then things like System.Linq are their own packages, so I guess that's the way things are here.

"GOTCHA: Compiler error CS0656 when using Dynamics in a .NET Standard project" first published 2/24/2019 and last updated 3/2/2019. Go to the Home Page.