Clipboard is a windows object. If you want to use clipboard in your .NET framework console applications you must reference `System.Windows.Forms` and mark your main method with `STAThreadAttribute` attribute. Then you can use this class's methods e.g. Clipboard.SetText("some text to store in the clipboard"); Happy coding.
Deadlock Resources
If you encounter a deadlock problem this resources can help to understand and solve the problem. Deadlocking http://msdn.microsoft.com/en-us/library/ms177433.aspx Minimizing Deadlocks http://msdn.microsoft.com/en-us/library/ms191242.aspx Detecting and Ending Deadlocks http://msdn.microsoft.com/en-us/library/ms178104.aspx