Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. code example

Example 1: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.

Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r

Example 2: Could not load file or assembly 'Ubiety.Dns.Core, Version=2.2.1.0

In Package Manager Console, this worked, thanks! 
Install-Package Ubiety.Dns.Core -Version 2.4.1