Can I screenshot or printscreen with a console application without excess references
问题 I was wondering if there is a way to screenshot your desktop with a console application without having to call Windows.Forms and call the SendKeys class. Because I just created a compiler and it can only compile pure C# Console applications, it doesnt work if you add a reference because its going to throw you a few error See this link (My question with an answer on codeproject) and I want to create a console application which can take screenshots when I want it to. 回答1: I use this class to do