title: Visual studio for Mac looks into different class than referenced
body: <p>After accidentally hitting rename of my skv_match class to skv_player class I have issue with my ReadMatches method. The Visual studio keeps telling me, there is no definition of methods in class skv_player when I use class skv_match instead (after I renamed the class back to skv_match). </p>
  
  <p>I am desperate and don't know if I am doing something wrong or Visual studio for Mac is. Does anybody know how to solve this or did I miss something in the code? </p>
  
  <p>I tried to restart the app and laptop, rebuild and clean project. I also tried deleting the figuring classes, creating them again and pasting the original content in them. </p>
  
  <pre><code>public string ReadMatches()
          {
              var matches = _context.skv_match.AsNoTracking();
              StringBuilder sb = new StringBuilder();
              if (matches == null)
              {
                  return "No matches found";
              }
              else
              {
                  foreach (var skv_match in matches)
                  {
                      sb.Append($"Match id: {skv_match.id }\r\n");
                      sb.Append($"Match results: {skv_match.home_team}");
                      sb.Append($"{skv_match.home_score }:");
                      sb.Append($"{skv_match.visitor_score } ");
                      sb.Append($" {skv_match.visitor_team }\r\n");
                  }
              }
              return sb.ToString();
          }
  
  
  public class skv_match
      {
          [Key]
      [DatabaseGeneratedAttribute(DatabaseGeneratedOption.None)]
          public int id { get; set; }
          public string home_team { get; set; }
          public string visitor_team { get; set; }
          public int home_score { get; set; }
          public int visitor_score { get; set; }
      }
  </code></pre>
  
  <p>I get error: "'skv_player' does not contain a definition for 'home_team' and no accessible extension method 'home_team' accepting a first argument of type 'skv_player' could be found (are you missing a using directive or an assembly reference?)" and same for other methods</p>
  
  <p>I expect the app to just take this without any errors, yet I get error that class I am not referencing misses methods. Before I accidentally hit rename the class everything worked just fine.</p>