I am creating a Windows application targeting .NET 4.5.1. It compiles and runs fine. When I hit the break-point and edit the source code, I get the message saying:
The type 'System.Object' 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'.
I have latest Microsoft .NET Framework 4.5.1 Developer Pack installed and using VS 2013.
I have tried to manually reference the System.Runtime.dll, but then my project does not even compile, with the compiler complaining:
'System.Runtime.CompilerServices.TaskAwaiter`1' does not contain a definition for 'IsCompleted'
I can find similar error reports for ASP.NET but nothing for Windows applications. Is there something I can do to get the editing of the running source code working again?