title: Why doesn't Directory.Build.props work when building a solution using Visual Studio 2017?
body: <p>I have a Directory.Build.props file located in the same directory as the .sln file.</p>
  
  <pre><code> &lt;Project&gt;
  &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "&gt;
    &lt;DocumentationFile&gt;bin\Debug\$(MSBuildProjectName).xml&lt;/DocumentationFile&gt;
  &lt;/PropertyGroup&gt;
  &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "&gt;
    &lt;DocumentationFile&gt;bin\Release\$(MSBuildProjectName).xml&lt;/DocumentationFile&gt;
  &lt;/PropertyGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>When I build the solution using MSBuild, I am able to generate the XML files properly. However, using a Build -> Rebuild Solution task in Visual Studio doesn't generate the XML file.</p>
  
  <p>Is there a difference in how Visual Studio 2017 builds and uses Directory.Build.props as opposed to MSbuild? </p>