Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 645
Hungry Beast Avatar asked Jan 04 '12 15:01

Hungry Beast


2 Answers

I've found that setting /p:DesktopBuildPackageLocation=some\package.zip for MSBuild doesn't work (it works when specified in pubxml though).

However, it turns out that setting /p:PackageFileName=some\package.zip works fine. Furthermore, you can use it along with /p:PublishProfile parameter.

like image 53
piotrwest Avatar answered Nov 20 '22 23:11

piotrwest


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.

like image 24
Jimmy Avatar answered Nov 20 '22 21:11

Jimmy