title: How to create MSdeploy Package using MSBuild for all files in this project folder
body: <p>I'm trying to create a web deploy package using msbuild through command line. I have been searching all over and found the following command </p>
  
  <pre><code> msbuild myproject.csproj /t:package
  </code></pre>
  
  <p>Though it works for me but it gives me only what visual studio gives us back when we create web deploy package through Packge/Publish Web tab with "only files needed to run this application" option selected from the drop down menu. But I want my web deploy package to look exactly the same as what I get when I select "All files in this project folder" option from the drop down menu. I have gone through links like this <a href="http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx" rel="noreferrer">http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx</a>.</p>
  
  <p>But I wonder that do I really need to customize my .csproj file (the way its been described in that post)  since all I want, is a command line (apparently more elaborate than the one I mentioned above) for msbuild that can imitate the  "All files in this project folder" option that populates the <strong>"bin folder of web deploy package"</strong> with all the .dlls that are there in the original bin folder of my project and generate me a more comprehensive package.</p>