A netstandard package to copy text to and from the clipboard.
PM> Install-Package TextCopy
TextCopy.Clipboard.SetText("Text to place in clipboard");
var text = TextCopy.Clipboard.GetText();
- Windows with .NET Framework 4.6.1 and up
- Windows with .NET Core 2.0 and up
- Windows with Mono 5.0 and up
- OSX with .NET Core 2.0 and up
- OSX with Mono 5.20.1 and up
- Linux with .NET Core 2.0 and up
- Linux with Mono 5.20.1 and up
- Universal Windows Platform version 10.0.16299 and up
The following may work but have not been verified:
If anyone verifies any of the above, please submit a Pull Request to the readme with the outcome.
If support is required, please submit a Pull Request that adds support.
Notes on Linux
Linux uses xclip to access the clipboard. As such it needs to be installed and callable.
Clone designed by Wes Breazell from The Noun Project