2016-08-20 31 views
1

これは初めてのVisual StudioまたはC#でasyncを使用しています。私はこの追加された参照(任意のCPU)でVisual Studio 2015を使用しています:https://github.com/kade-robertson/AnimmexAPI/releases/tag/0.0.3ファイルまたはアセンブリ、またはその依存関係の1つを読み込めませんでした

は、私は、WindowsフォームアプリケーションでこのAPIをテストしようとしていますが、私はそれを実行するたびに、私は次のメッセージが出ます:

型「System.IO.FileNotFoundException」の未処理の例外がシステムで発生しました。 Windows.Forms.dll

追加情報:ファイルまたはアセンブリ 'AnimmexAPI、Version = 0.0.3.0、Culture = neutral、PublicKeyToken = null'またはその依存関係の1つを読み込めませんでした。システムは、指定されたファイルを見つけることができません。ここで

私が実行しようとしていますコードです:

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

namespace AnimmexDownloader 
{ 
    public partial class Form1 : Form 
    { 
     public Form1() 
     { 
      InitializeComponent(); 
     } 

     private async void button1_Click(object sender, EventArgs e) 
     { 
      var api = new AnimmexClient(); 
      var fellowshipVid = await api.ImFeelingLucky("fellowship of the ring"); 
      MessageBox.Show(fellowshipVid.ToString()); 
     } 
    } 
} 
+0

ありがとうございます! AnimmexAPIの作成者:)ここでは、NuGetで利用可能なパッケージを使用することをお勧めします。これは依存関係も処理します! – Kade

答えて

関連する問題