title: Add-Type : (0) : Metadata file 'System.Linq.dll' could not be found
body: <p>working through the automation listed here - <a href="https://github.com/cloudbase/windows-openstack-imaging-tools" rel="nofollow">https://github.com/cloudbase/windows-openstack-imaging-tools</a> and have queries to github as well, but thought this would also be a helpful site to query to.</p>
  
  <p>Here is a snippet of the code that the error is referencing.  I understand that I'm not including the entire script (ie, we don't have information on what $code is), but seeing if anything in the actual line of code could be improved or causing the error.  Thanks!</p>
  
  <p>Code:</p>
  
  <pre><code>if (-not ([System.Management.Automation.PSTypeName]'WIMInterop.WimFile').Type)
  {
      Add-Type -TypeDefinition $code -ReferencedAssemblies "System.Xml","System.Linq","System.Xml.Linq"
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Add-Type : (0) : Metadata file 'System.Linq.dll' could not be found
  (1) : /*
  At C:\windows-openstack-imaging-tools-master\Interop.ps1:1353 char:13
  +     Add-Type &lt;&lt;&lt;&lt;  -TypeDefinition $code -ReferencedAssemblies "System.Xml","System.Linq","
      + CategoryInfo          : InvalidData: (error CS0006: M...ld not be found:CompilerError)
      + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  </code></pre>