Thank you, works like a charm :)
PS C:\somefolder\Test> csc -r:"C:\Program Files (x86)\WinSCP\WinSCPnet.dll" -t:exe .\testwinscp.cs