I am using Visual Studio 2017 RC and have started a new ASP.NET Core project aimed at the full .NET Framework.
This line of code will not compile.
dynamic handler = _container.GetService(handlerType);
if (handler == null) _logger.LogError("Can't find handler to handle " + cmd.GetType().Name);
I get the following error
CS0656 Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'
After some Googling, it looks like this because I am missing the Microsoft.CSharp build. There are many people who stumbled upon his problem, but not like .NET Core 1.1.
So, I did this Install-Package Microsoft.CSharpand got version 4.3.0. My project will still not be built.
If I add the assembly reference to Microsoft.CSharp (version of GAC'd), it compiles and runs.
This is mistake? I would expect the NuGet package to fix this?