I found that the /p:DesktopBuildPackageLocation=some\package.zip option for MSBuild does not work (it works if specified in pubxml, though).
However, it turns out that setting /p:PackageFileName=some\package.zip works fine. Alternatively, you can use it with the / p: PublishProfile option.
source share