title: Namespace not recognized (even though it is there)
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>The type or namespace name 'AutoMapper' could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>The funny thing is that I have that reference in my project already:</p>
  
  <p><img src="https://i.stack.imgur.com/lbFBZ.png" alt="ProjectThatFails"></p>
  
  <p>And this is my code:</p>
  
  <pre><code>using System.Collections.Generic;
  using DataContract;
  using SelectorDAL;
  using AutoMapper;
  
  namespace SpecimenSelect
  {
      public class SpecimenSelect : ISpecimenSelect
      {
          public SpecimenSelect()
          {
              SetupMaps();
          }
  
          private static void SetupMaps()
          {
              Mapper.CreateMap&lt;SpecimenDetail, SpecimenDetailContract&gt;();
          }
  </code></pre>
  
  <p>The other weird thing is that I have two other projects in my solution that both use AutoMapper and are referencing the exact same AutoMapper.dll file.  They both work perfectly fine.</p>
  
  <p>Here is a screen shot of one:</p>
  
  <p><img src="https://i.stack.imgur.com/EDUyh.png" alt="ProjectThatWorks"></p>
  
  <p>and here is that code (that compiles fine):</p>
  
  <pre><code>using System.Collections.Generic;
  using AutoMapper;
  using DataContract;
  using SelectorDAL;
  
  namespace PatientSelect
  {
  
      public class PatientSelect : IPatientSelect
      {
          public PatientSelect()
          {
              SetupMaps();
          }
  
          private void SetupMaps()
          {
              Mapper.CreateMap&lt;Patient, PatientContract&gt;();
              Mapper.CreateMap&lt;OrderedTest, OrderedTestsContract&gt;();
              Mapper.CreateMap&lt;Gender, GenderContract&gt;();
          }
  </code></pre>
  
  <p>Both references seem to have the same data on the properties page.</p>
  
  <p>What am I missing?</p>
  
  <p>I tried:</p>
  
  <ol>
  <li>Restarting Visual Studio</li>
  <li>Referencing without a using statement (ie <code>AutoMapper.Mapper.CreateMap</code>)</li>
  <li>Clean and Rebuild</li>
  </ol>
  
  <p>Any other ideas?</p>