Adding Reference Problem in Visual Studio 2010
<p>I created my custom DLL "MongoDbExtensions". Now in a new project I add a reference to the "MongoDbExtensions" and then try to invoke a method inside the MongoDbExtensions called ToDocument. I use resharper to add the namespace at the top of the file but when I compile I still get the following error: </p>

<p>Error   1   The type or namespace name 'MongoDbExtensions' could not be found (are you missing a using directive or an assembly reference?) C:\Projects\HelpForum\DemoConsole\Program.cs    6   7   DemoConsole</p>

<p>What is going wrong? My DLL can be downloaded from here: </p>

<p><a href="http://github.com/azamsharp/MongoDbExtensions/downloads" rel="nofollow">http://github.com/azamsharp/MongoDbExtensions/downloads</a></p>

<p>UPDATE 1: </p>

<p>Here is the MongoExtensions class: </p>

<pre><code>namespace MongoDbExtensions
{

    public static class MongoExtensions
    {
        public static List&lt;T&gt; ToList&lt;T&gt;(this IEnumerable&lt;Document&gt; documents)
        {
            var list = new List&lt;T&gt;();

            var enumerator = documents.GetEnumerator();

            while (enumerator.MoveNext())
            {
                list.Add(enumerator.Current.ToClass&lt;T&gt;());
            }

            return list;
        }

}
}
</code></pre>

<p>ToDocument is an extension method that works on Object. </p>
