title: MSBuild doesn't respect PublishUrl property for my ClickOnce app
body: <p>I'm trying to make a batch file to publish the few ClickOnce application we have in one click. I'm using msbuild for that, and as an example the below command line shows how I'm doing it:</p>
  
  <pre><code>msbuild
      MyApp.sln
      /t:Publish
      /p:Configuration=Release
      /p:PublishUrl="C:\Apps\"
      /v:normal &gt; Log.txt
  </code></pre>
  
  <p><em>(wrapped for easier reading)</em></p>
  
  <p>when I run the above command it builds and publish the application in the release directory, i.e. bin\release! Any idea why msbuild doesn't respect PublishUrl property in my example above?</p>
  
  <p>PS: I tried also different combinations including remove 'Configuration', use 'Rebuild' and 'PublishOnly' as targets, and remove the the quotation marks but without any success.</p>