Getting Started

TorrentCore is under development and isn't ready for use yet. If you still want to try TorrentCore, you can get the latest version from the unstable AppVeyor NuGet feed.

Add the following NuGet.config file to your project or solution folder:

<configuration>
  <packageSources>
    <add key="TorrentCore-AppVeyor" value="https://ci.appveyor.com/nuget/torrentcore-0je3uyk11790" />
  </packageSources>
</configuration>

Add a reference to TorrentCore in your project by running:

PM> Install-Package TorrentCore

You can then download a torrent as follows:

// Create a torrent client. This can be used to run multiple downloads.
var client = TorrentClient.Create();

// Add a new download
var download = client.Add("sintel.torrent",
                          @"C:\Downloads\sintel");

// Start downloading
download.Start();

// Wait until the download has completed
await download.WaitForDownloadCompletionAsync();