title: How do I concatenate strings with variables in PowerShell?
body: <p>I'm trying to build a file path in PowerShell and the string concatenation seems to be a little funky.</p>
  
  <p>I have a list of folders:</p>
  
  <pre><code>c:\code\MyProj1
  c:\code\MyProj2
  </code></pre>
  
  <p>I want to get the path to a DLL file here:</p>
  
  <pre><code>c:\code\MyProj1\bin\debug\MyProj1.dll
  c:\code\MyProj2\bin\debug\MyProj2.dll
  </code></pre>
  
  <p>Here's what I'm trying to do:</p>
  
  <pre><code>$buildconfig = "Debug"
  
  Get-ChildItem c:\code | % {
      Write-Host $_.FullName + "\" + $buildconfig + "\" + $_ + ".dll"
  }
  </code></pre>
  
  <p>This doesn't work. How can I fix it?</p>