1

Refer to the screenshot below, I need to use DynamicObject in .net standard 1.6 library project.

However, I cannot add any additional dependencies by right click the Dependencies and Add Reference in Visual Studio 2017 Enterprise (15.2).

Does anyone know how to use DynamicObject in .net standard class library project targeting netstandard 1.6?

enter image description here

1
  • You'll have to add the Nuget package, System.Dynamic.Runtime. Not so "standard" anymore after doing this, afaict it also adds ILGeneration and that's not compatible with the kind of platform targets that don't have a jitter. YMMV. Commented May 13, 2017 at 11:03

1 Answer 1

3

You need to add the System.Dynamic.Runtime NuGet package for the type to become available in the System.Dynamic namespace. In netstandard2.0, it will be available automatically.

dotnet add package System.Dynamic.Runtime
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.