When trying to compile using MSBuild, you may get this error:
CS0012: The type ‘System.Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.
This is possibly because you are using the wrong version of MSBuild or you have the wrong Dot Net Targeting Pack installed.