I need to read and save a JSON file inside an ASP.NETt vNext app, and I would like to use a dynamic variable to store the value loaded using JSON.net, but when I go to compile I received this error message:
ASP.NET Core 5.0 error CS1980: Cannot define a class or member that utilizes
'dynamic'because the compiler required type'System.Runtime.CompilerServices.DynamicAttribute'cannot be found. Are you missing a reference?
How can solve this? If I use dynamic, can I run an application using ASP.NET core?