C#monotorrent客户端嵌入问题

C#monotorrent客户端嵌入问题,c#,bittorrent,monotorrent,bitsharp,C#,Bittorrent,Monotorrent,Bitsharp,我需要将torrent客户端(能够通过.torrent文件下载文件)嵌入到我的C#应用程序中。我正在使用monotorrent库来实现这一点。 我需要编写windows应用程序,可以通过.torrent文件将文件下载到我的本地文件夹 我已经从这里下载了C#项目的汇编 以下是我正在使用的代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using S

我需要将torrent客户端(能够通过.torrent文件下载文件)嵌入到我的C#应用程序中。我正在使用monotorrent库来实现这一点。 我需要编写windows应用程序,可以通过.torrent文件将文件下载到我的本地文件夹

我已经从这里下载了C#项目的汇编

以下是我正在使用的代码:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using MonoTorrent.Client;
using MonoTorrent.Client.Encryption;
using System.IO;
using MonoTorrent.Common;
using System.Net;


namespace monotorrent
{
public partial class Form1 : Form
{
    ClientEngine engine;
    public Form1()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
        Torrent torrent = Torrent.Load("C:\\1.torrent");

        // Create the manager which will download the torrent to savePath
        // using the default settings.
        TorrentManager manager = new TorrentManager(torrent, "E:\\torrent", new TorrentSettings());

        // Register the manager with the engine
        this.engine.Register(manager);

        // Begin the download. It is not necessary to call HashCheck on the manager
        // before starting the download. If a hash check has not been performed, the
        // manager will enter the Hashing state and perform a hash check before it
        // begins downloading.

        // If the torrent is fully downloaded already, calling 'Start' will place
        // the manager in the Seeding state.
        manager.Start();
    }
}
}
当我运行代码并按下下载按钮时,出现了一个错误:

无法从程序集“MonoTorrent,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null”加载类型“MonoTorrent.Common.Torrent”

我认为这是装配的问题。但是在哪里可以获得正常的程序集(.dll)

请帮我解决这个问题


另外,如果您知道将torrent客户端嵌入windows窗体应用程序的更简单的解决方案,请选择wellcome=)

尝试自己编译库(通过打开VS并进行构建),而不是使用您在网上找到的库(*.dll)。此外,所有依赖项都在吗?

在项目中放置对monotorrent.dll的引用。您可以从

获取它或从源代码处编译。这是源代码。您可以帮助我将其编译为dll吗?我该怎么做?我找不到任何.sln或csproj文件。谢谢