title: Making TFS include the Published WCF Services in release build
body: <p>We have a release build where we want all the WebApps and WCF Services included as separate zipfiles in the build. </p>
  
  <p>The release build includes all our solutions in "Items to build" on the Process page of the build.</p>
  
  <p>We use the following "MSBuild Arguments" on the Process page:</p>
  
  <pre><code>"/p:CreatePackageOnPublish=True /p:DeployOnBuild=True"
  </code></pre>
  
  <p>This works great for the Web Application projects, these are zipped and included, so we can unzip them from a Powershell script and deploy them on a server.</p>
  
  <p>However the "WCF Services Library"-projects and "WCF Service Application"-projects are not included. </p>
  
  <p>I've also tried setting the </p>
  
  <pre><code>&lt;DeployOnBuild&gt;True&lt;/DeployOnBuild&gt; 
  &lt;CreatePackageOnPublish&gt;True&lt;/CreatePackageOnPublish&gt;
  </code></pre>
  
  <p>in the csproj file, but it did not get included (as explained in <a href="http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html" rel="nofollow">http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html</a>)</p>
  
  <p>Does anybody know how to make MSBuild also include the "WCF Services Library"-projects?</p>
  
  <p>We use TFS 2011, but it should be compliant with TFS 2010</p>