Add System.Core.dll as a reference.

Remove .NET source parts.