Как добавить ссылку на сборку System.Core.dll?
Я пытаюсь скомпилировать метод расширения, используя моно. У меня есть этот код:
using System;
using System.Net;
using System.Net.Sockets;
namespace My.Util
{
public static class SocketReturnTypeCovariants
{
public static IPEndPoint RemoteEndPoint_safe(this Socket soc)
{
return soc.RemoteEndPoint as IPEndPoint;
}
}
}
Я получаю эту ошибку.
/home/richard/d/trash/mono/return-type-covariance/return-type-covariance/Main.cs(34,34): Error CS1110: `My.Util.SocketReturnTypeCovariants.RemoteEndPoint_safe(this System.Net.Sockets.Socket)': Extension methods cannot be declared without a reference to System.Core.dll assembly. Add the assembly reference or remove `this' modifer from the first parameter (CS1110) (return-type-covariance)
Так как мне добавить ссылку на сборку System.Core.dll?