Difficulty with DisqusSharp

穿精又带淫゛_ 提交于 2019-12-13 06:05:28

问题


I am playing around with DisqusSharp:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WWB.DisqusSharp.Model.DisqusService;
using WWB.DisqusSharp.Infrastructure.Hammock;

namespace DisqusSharpTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Out.WriteLine("foo");
            Console.In.ReadLine();

            IDisqusService disqus = new HammockDisqusService("myKey");
            IEnumerable<string> names = disqus.GetThreadList("myForumId", new StartLimitArgs { Start = 0, Limit = 5 })
                                      .Payload.Select(disqusThread => disqusThread.Title);

            foreach (string name in names) 
            {
                Console.WriteLine(name);
            }
        }
    }
}

After I add references to WWB.DisqusSharp.dll, as well as Hammock.dll and Newtonsoft.Json.dll, this appears to work fine. I use Visual Studio's autocorrect feature and it adds using statements for the WWB classes.

However, when I click "start debugging" or "start without debugging", it complains of a build error, saying that the namespace WWB cannot be found. I then re-add the reference, and it works again, until I hit "start debugging" again.

What am I doing wrong?


回答1:


I'd be WWB, guess I should add disqussharp to the watch list. Anyhow, I'm not sure the problem you are having, but I'd suggest using the nuget package as a test to make sure things get wired up correctly.



来源:https://stackoverflow.com/questions/7233612/difficulty-with-disqussharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!