I was recently attempting to compile my Telerik Sitefinity Web Application in Visual Studio 2015 which included an MVC Controller which made a reference to the ViewBag property when I suddenly saw this error message in the Build Output which was preventing me from compiling my project succesfully:
Error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'
After doing some research on the error message, I discovered that Visual Studio 2015 for some reason was having trouble with the ViewBag property in my Controller!
As soon as I removed the reference to the ViewBag property from my Controller, I was able to successfully compile my Sitefinity Web Application once again!
Error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'
After doing some research on the error message, I discovered that Visual Studio 2015 for some reason was having trouble with the ViewBag property in my Controller!
As soon as I removed the reference to the ViewBag property from my Controller, I was able to successfully compile my Sitefinity Web Application once again!
I think you need a reference to Microsoft.CSharp which is where the dynamic keywork is defined.
ReplyDeleteAdding a reference to Microsoft.CSharp will solve it. It did for me
ReplyDeletereference to Microsoft.CSharp worked for me to.
ReplyDeletemee too
ReplyDelete