title: c# xml comment, cref can't reference method defined in base class
body: <p>In my codebase I have a method defined in a base class, the base class is inherited, but the method is not yet overridden. This method will very likely be overridden in the future to add to the base implementation.</p>
  
  <p>My setup looks a bit like this:</p>
  
  <pre><code>public abstract class BaseFoo
  {
      public virtual void Bar()
      {
          //default implementation
      }
  }
  
  public class RealFoo : BaseFoo
  {
      //extra code, does *NOT YET* override Bar but might in the future
  }
  
  public class DependentClass
  {
      /// &lt;summary&gt;
      /// Uses &lt;see cref="RealFoo.Bar"/&gt; to do some magic
      /// &lt;/summary&gt;
      public void SomeMethod()
      {
  
      }
  }
  </code></pre>
  
  <p>Since it's very likely that Bar will be overridden in the future, I would like to future proof my xmldoc and reference <code>RealFoo.Bar</code> instead of <code>BaseFoo.Bar</code>.</p>
  
  <p>When I call <code>RealFoo.Bar()</code> in my code, no errors occur. When I do so in a cref attribute I get the following warning:</p>
  
  <blockquote>
    <p>Warning   CS1574  XML comment has cref attribute 'Bar' that could not be
    resolved.</p>
  </blockquote>
  
  <p>Am I doing something wrong here or is this just a limitation of cref?</p>
  
  <p>I'm using visual studio 2017, targeting netstandard2.0 and net452, and I have XML documentation enabled in my csproj.</p>