Clipboard.CSharp 0.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Clipboard.CSharp --version 0.2.1                
NuGet\Install-Package Clipboard.CSharp -Version 0.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Clipboard.CSharp" Version="0.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Clipboard.CSharp --version 0.2.1                
#r "nuget: Clipboard.CSharp, 0.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Clipboard.CSharp as a Cake Addin
#addin nuget:?package=Clipboard.CSharp&version=0.2.1

// Install Clipboard.CSharp as a Cake Tool
#tool nuget:?package=Clipboard.CSharp&version=0.2.1                

Clipboard for C#

Clipboard is a C# library to copying and pasting to the Clipboard. It is heavily inspired by the Go library clipboard.

Supported OS:

  • OSX
  • Windows 10 (probably work on other Windows)
  • Linux/Unix (requires 'xclip' or 'xsel' command to be installed)

Notes:

  • Text string only

Getting Started

using Clipboard;

const string text = "test";
Console.WriteLine("Writing {0} to clipboard...", text);
SystemClipboard.Instance.Write(text);

Console.WriteLine("Reading from clipboard...");
Console.WriteLine(clipboard.Read());

Commands:

paste shell command:

dotnet tool install -g dotpaste
dotpaste > document.txt

copy shell command:

dotnet tool install -g dotcopy
cat document.txt | dotcopy

Authors

Rafael Andrade - Project Owner & creator

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 167 4/22/2024
0.2.1 209 6/23/2023