title: msbuild task to read AssemblyFileVersion of dll
body: <p>I need to read <code>AssemblyFileVersion</code> of dll instead of just <code>Version</code>.  I tried:</p>
  
  <pre><code>&lt;Target Name="RetrieveIdentities"&gt;
      &lt;GetAssemblyIdentity AssemblyFiles="some.dll"&gt;
          &lt;Output
              TaskParameter="Assemblies"
              ItemName="MyAssemblyIdentities"/&gt;
      &lt;/GetAssemblyIdentity&gt;
      &lt;Message Text="%(MyAssemblyIdentities.FileVersion)" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>The script runs but doesn't output anything.  If I change <code>FileVersion</code> to <code>Version</code> it correctly outputs the <code>AssemblyVersion</code>.  How do I get <code>AssemblyFileVersion</code> with my script?</p>