"Missing compiler required member" error being thrown multiple times with almost no changes to code

In my case it was because the project was not referencing Microsoft.CSharp. Once I added a reference to that assembly, it compiled just fine.


I don't know if anyone else has experienced this, but I suddenly rain into this error after adding some code utilizing dynamic types and incorporating WebAPI into a project that originated as a TypeScript application in VS2013. Simply adding a reference to Microsoft.CSharp resolved my issue.

Hope this helps someone else.


This error usually means either your project is compiling against .NET 2.0 or you aren't referencing the correct version of System.Core.dll

For a near duplicate question, see Error when using extension methods in C#

Tags:

C#

Asp.Net Mvc