title: Access `.csproj` attributes from C# in .NET Core
body: <p>My <code>.csproj</code> file contains:</p>
  
  <pre><code>...
  &lt;PackageId&gt;MyProject&lt;/PackageId&gt;
  &lt;Version&gt;1.0.0&lt;/Version&gt;
  ...
  </code></pre>
  
  <p>How can I access that from my project's code?</p>