title: How do I publish a ClickOnce install in MSBUILD (VS2005) that goes to the proper directory and does NOT create a setup.exe?
body: <p>I'm trying to automate publishing a click once application.</p>
  
  <p>I am using VS2005.</p>
  
  <p>I have been able to deploy properly from VS, but not from the command line.</p>
  
  <p>Here is the line I'm using:</p>
  
  <pre><code>    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe 
  /p:Configuration=Release
  /t:Publish
  /p:PublishUrl=C:\source\deploy\
  /p:PublishDir=c:\source\deploy\
  /p:ApplicationVersion=1.2.3.5
  "c:\myproject\myproject.csproj"
  </code></pre>
  
  <ol>
  <li><p>Instead of deploying to C:\source\deploy\MyProject it deploys to the bin folder inside my project.  If I leave off the trailing slash, it deploys to c:\source\deploymyproject</p></li>
  <li><p>It creates a setup.exe.  I assume this is for installing to the desktop instead of the web.  Is this an indication of a problem, or can it be ignored?</p></li>
  </ol>