在我的PCL项目中的一个类中,我定义了
受保护的动态模型;
认为这是聪明的b'cuz模型,那么对于继承这个类的孩子来说可能是任何东西。但它不会建立,指出:
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?
我错过了什么,还是做不到?
缺少 Microsoft.CSharp 程序集提供的对动态的运行时支持。 当您的库面向"旧"框架之一时,它不可用:XBox 或 Windows Phone 7.x。