A cross-platform .NET library for copying and pasting text to and from the system clipboard.
TextCopy is a .NET library that simplifies clipboard operations for text across various platforms and frameworks. It provides a consistent API to copy text to and read text from the system clipboard, handling platform differences internally. The library solves the problem of fragmented clipboard access in .NET applications running on Windows, macOS, Linux, mobile, and web.
.NET developers building cross-platform applications that require clipboard functionality, including desktop, mobile (Xamarin), and web (Blazor) projects.
Developers choose TextCopy for its simplicity, broad platform support, and seamless integration with modern .NET patterns like dependency injection. It eliminates the need to write platform-specific clipboard code, saving time and reducing errors.
A cross platform package to copy text to and from the clipboard.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Unifies clipboard access across Windows, macOS, Linux, Xamarin, and Blazor WebAssembly, eliminating platform-specific code as shown in the supported platforms list.
Offers both static ClipboardService for simplicity and instance-based IClipboard for DI, with async and sync methods per the usage snippets.
Ready for dependency injection in Blazor via InjectClipboard(), handling JSInterop internally as demonstrated in the Blazor sample code.
Includes MockClipboard and InjectMockClipboard for straightforward unit testing of clipboard-dependent logic, mentioned in the DI section.
Requires xsel to be installed and callable on Linux, adding setup complexity and potential failure points in environments without it.
Limited to plain text operations, lacking support for rich content like images or formatted text, which the README does not address.
Relies on specific browser APIs (clipboard.readText/writeText) for Blazor, which may not be available in older browsers or restricted contexts.