I have an ASP.NET web application targeting .NET 4.5. Locally, the project builds, but on the build server (TeamCity) it fails:
...cs(77, 38): error CS0012: The type 'System.Enum' 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'.
What can be the cause of (and remedy for) this?