title: Publishing lightswitch app via command line does not work
body: <p>I have been having some issues getting a lightswitch app to publish to a package outside of visual studio.</p>
  
  <p>I think I am probably using the wrong command, but I cant find any information about what commands I should use.</p>
  
  <p>My command looks like this: 
  <code>MSBuild "Path To My Sln.sln" /p:VisualStudioVersion=12.0;DeployOnBuild=true;PublishProfile=Release;Configuration=Release</code></p>
  
  <p>I get the following error:   </p>
  
  <pre><code>    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web
      .Publishing.targets(3899,5): msdeploy error ERROR_EXCEPTION_WHILE_CREATING_OBJECT: 
      Web deployment task failed. (Object of type 'manifest' and path 
      'manifestpath\projectname.xml' cannot be created.  Learn more at:
      http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXCEPTION_WHILE_CREATING_OBJECT.)
  </code></pre>
  
  <p>The reason for this is that the app.publish folder that is within the manifest file does not exist. The folder should be located in the bin. </p>
  
  <p>When I do a publish via VS the app.publish folder is created, so my current thinking is that VS does something that the command I am running does not, I am not sure what that is though.</p>
  
  <p>The reason for needing this to work via the command line is so that we can create a package on our build server.</p>