Search code examples
msbuildpackagemsdeploy

MSBuild Package Location


When I run MSBuild with the /t:Package parameter I want to be able to specify where the folder that contains the *.cmd and *.zip files gets output. Specifying _PackageTempDir outputs the entire application without the deploy files (*.cmd and *.zip). Is there any way to specify this in the command line?

UPDATE: The OutDir param outputs more than I need or want.


Solution

  • If you set

    <DesktopBuildPackageLocation>c:\foo\MyProject.zip</DesktopBuildPackageLocation>
    

    you'll get the .zip file, the .cmd file, and the other related output files in c:\foo.