Question: system.attribute' is defined in an assembly that is not referenced?
Answer: Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System. Runtime, Version=4.0. 0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.