title: Deploying to FTP from command line using MSBuild on VS2012 not working, no errors
body: <p>I'm trying to execute the publish profile from the command line.  </p>
  
  <ol>
  <li>Created a publish profile in Visual Studio (right click project -> publish)</li>
  <li>Verified that it works.  When I press publish, the stuff goes where it is supposed to go (FTP site)</li>
  </ol>
  
  <p>Now I'd like to do this from TFS and that means MSBuild.  </p>
  
  <p>From the command line, I tried this:</p>
  
  <pre><code>msbuild.exe WebApplication1.csproj /p:DeployOnBuild=true;PublishProfile="ftp";Password={INSERT-PASSWORD}
  </code></pre>
  
  <p>I receive no error.  And the files are not published on the FTP site.  The name of the publish profile is ftp.pubxml.  It is physically here:  </p>
  
  <p><code>WebApplication1\Properties\PublishProfiles\ftp.pubxml</code></p>
  
  <p>That's where Visual Studio 2012 puts it by default.</p>
  
  <p>I'm using FTP deploy, not Web Deploy.  No Click Once.  A lot of the stuff online talks about those two.  This is a boring, old FTP deploy.</p>
  
  <p><a href="https://stackoverflow.com/questions/13250695/publishing-vs2012-solution-from-team-city">Related Question on SO here</a></p>