-1

I am using Visual Studio 2010 .NET 4.X and I'm trying to use the ExpandoObject class, but I'm getting a not recognized error on the using System.Dynamic statement.

I made sure to add a reference to System.Core, but that didn't resolve the issue. Is there anything else I need to do?

Caleb Keller
  • 553
  • 3
  • 19
O.Deitch
  • 3
  • 2

3 Answers3

1

Make sure you have a reference to the assembly System.Core.

To do this, find your project in the solution explorer, right click "References", and click "Add Reference...". Then, in the assemblies list, find System.Core, and add it.

vcsjones
  • 138,677
  • 31
  • 291
  • 286
0

Add a reference to System.Core assembly.

Eugene Shvets
  • 4,561
  • 13
  • 19
0

This moved to System.Dynamic at some point.

vealer
  • 625
  • 5
  • 9