title: How do I pass a property value containing a semicolon on the MSBuild command line when running it from PowerShell?
body: <p>I'm attempting to pass a property to MSBuild. The property is a semicolon-delimited list of values. Unlike <a href="https://stackoverflow.com/questions/6051054/how-do-i-pass-a-property-to-msbuild-via-command-line-that-could-be-parsed-into-a">this question</a>, I'm running MSBuild from PowerShell.</p>
  
  <p>I get:</p>
  
  <pre><code>PS&gt; msbuild .\Foo.sln /p:PackageSources="\\server\NuGet;E:\NuGet"
  
  MSBUILD : error MSB1006: Property is not valid.
  Switch: E:\NuGet
  </code></pre>
  
  <p>If I run the same command from Command Prompt, it works fine. How do I get it to work in PowerShell?</p>