title: Publish database project using MsBuild
body: <p>I have a database project in my solution. It comes with the <code>Local.Datatabase.publish.xml</code>. After building the project, if I double click on the xml file, I'm able to publish the changes to my local database.</p>
  
  <p>I like to automate this process. Using <code>MsBuild</code>, I like to be able to do the same thing.</p>
  
  <blockquote>
    <p>I've set <code>$msbuild</code> to
    <code>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</code></p>
  </blockquote>
  
  <p>Unfortunately, <code>$msbuild /t:Publish /p:SqlPublishProfilePath="Local.Database.publish.xml"</code> isn't working.</p>
  
  <p>How can I publish a database project using MsBuild?</p>