title: csproj: how to get all resources?
body: <p>How to get all resources, which copies to created binary?</p>
  <p>I think that it is all elements like this (has CopyToOutputDirectory tag):</p>
  <pre><code>&lt;ItemGroup&gt;
   &lt;None Include=&quot;Configs\Config.config&quot;&gt;
     &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt;
   &lt;/None&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  <p>and like this:</p>
  <pre><code>&lt;ItemGroup&gt;
  &lt;Resource Include=&quot;Resources\Icons\icon4.png&quot; /&gt;
  &lt;/ItemGroup&gt;
  &lt;ItemGroup&gt;
    &lt;Resource Include=&quot;Resources\Icons\icon5.png&quot; /&gt;
  &lt;/ItemGroup&gt;
  &lt;ItemGroup&gt;
    &lt;Resource Include=&quot;Resources\Icons\icon6.png&quot; /&gt;
  &lt;/ItemGroup&gt;
  &lt;ItemGroup&gt;
    &lt;Resource Include=&quot;icon7.ico&quot; /&gt;
  &lt;/ItemGroup&gt;
  &lt;ItemGroup&gt;
    &lt;Resource Include=&quot;Resources\Icons\icon8.png&quot; /&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  <p>And I should parse all elements with tag &quot;Resource&quot; like this (?):</p>
  <pre><code>XDocument doc = XDocument.Load(filePath);
          IEnumerable&lt;XAttribute&gt; attr = doc.Descendants().Attributes(&quot;Resource&quot;);
  </code></pre>
  <p>And another question- how to get element before CopyToOutputDirectory tag?</p>
  <p>P.S. if it be useful- i have folder with projects(another folders).
  I parse all .csproj files from this folders and generate XML file with list of resources which copied to compiled binary of each project.</p>